Re: [ezmlm-www] Sample Apache config file
Brought to you by:
alexrj
From: ken <ke...@go...> - 2006-07-19 15:49:36
|
Okay got it working, I must of messed something up when editing ez_indexer.pl. Thanks for the help. Here is exactly what I did on FC4: url: www.mybizguard.com mailing list: te...@my... mailing list directory: /home/vpopmail/domains/mybizguard.com/test cpan cpan> install Mail::Ezmlm::Archive Mail::Box vpopmail Date::Parse Email::Simple Plucene cd /var/www/cgi-bin wget http://superb-west.dl.sourceforge.net/sourceforge/ezmlm-www/ezmlm-www-1.4.3.tar.gz tar -zxvf ezmlm-www-1.4.3.tar.gz mv ezmlm-www-1.4.3 mailinglist cd /var/www/cgi-bin/mailinglist cc index.cgi.c -o index.cgi chown vpopmail index.cgi chmod 4711 index.cgi chmod 755 ezmlm-www.pl Configure the config.pm file: cd /var/www/cgi-bin/mailinglist vi config.pm push @$lists, { name => 'te...@my...', local_part => 'test', host_part => 'mybizguard.com', description => 'Test MyBizGuard', archive => Mail::Ezmlm::Archive->new('/home/vpopmail/domains/mybizguard.com/test'), And uncomment like below: use vpopmail; Save and close this file. vi /etc/httpd/conf.d/mailinglist.conf PerlModule ModPerl::Registry <Location /var/www/cgi-bin/mailinglist/ezmlm-www.pl/> SetHandler perl-script PerlHandler ModPerl::Registry Options +ExecCGI PerlSendHeader On PerlOptions +SetupEnv Allow from All </Location> Alias /mailinglist "/var/www/cgi-bin/mailinglist" <Directory "/var/www/mailinglist"> </Directory> Restart apache: service httpd restart Go to: http://www.mybizguard.com/mailinglist/?te...@my... Search function: cd /var/www/cgi-bin/mailinglist/search vi ez_indexer.pl Change like the following: our $Engine = 'plucene'; push @Lists, { list_dir => '/home/vpopmail/domains/mybizguard.com/test', index_dir => '/home/vpopmail/domains/mybizguard.com/test/plucene' chmod +x /var/www/cgi-bin/mailinglist/search/ez_indexer.pl vi /var/www/cgi-bin/mailinglist/config.pm Add the following after line show_inline_images => 1 like below (notice the coma's): show_inline_images => 1, search => 'plucene', search_dir => '/home/vpopmail/domains/mybizguard.com/test/plucene', cd /var/www/cgi-bin/mailinglist/search/ ./ez_indexer.pl --create --verbose crontab -e Add the following to update daily: #EZMLM WWW 0 4 * * * /var/www/cgi-bin/mailinglist/search/ez_indexer.pl --update |