Thread: [ezmlm-www] test
Brought to you by:
alexrj
From: Cyril M. <pos...@pe...> - 2005-12-18 16:58:59
|
test |
From: Cyril M. <pos...@pe...> - 2005-12-18 17:01:44
|
Hi all, I was waiting for years for a web based application to spread our list messages on the web, and I was very happy to find your ezmlm-www. Thank you Alessandro ! I tried to install it on the web at this place : http://pentaxiste.org/liste/ But when getting there, a nice 'error 500' message welcomes the users just try it ;-) Here is my config.pm file : push @$lists, { name => 'li...@pe...', local_part => 'liste', host_part => 'pentaxiste.org', description => 'La liste de discussion des amateurs de PENTAX', archive => Mail::Ezmlm::Archive->new('/home/vpopmail/domains/pentaxiste.org/liste/archive'), conceal_senders => 1, subscription_info => 1, descending_by_default => 1, default_sorting => 'thread', #may be 'thread', 'date' or 'subject' show_html => 1, highlight => 1 }; There are the rights for the files in the directory : -rw-r--r-- 1 pentax users 2182 nov 2 17:51 Changelog -rw-r--r-- 1 pentax users 2409 déc 18 16:43 config.pm -rwxr-xr-x 1 pentax users 22342 nov 2 17:24 ezmlm-www.pl -rws--x--x 1 pentax users 13735 déc 18 15:54 index.cgi -rw-r--r-- 1 pentax users 64 fév 15 2005 index.cgi.c drwxr-xr-x 2 pentax users 4096 déc 18 15:10 lang -rw-r--r-- 1 pentax users 4115 nov 2 18:00 README -rw-r--r-- 1 pentax users 832 nov 2 18:08 README.mod_perl -rw-r--r-- 1 pentax users 2178 nov 2 17:58 README.search drwxr-xr-x 2 pentax users 4096 déc 18 15:10 search -rw-r--r-- 1 pentax users 1376 oct 28 11:00 style.css Do you see something in my files which explains thie error 500 message ? Any idea could help. Thanks in advance. Best regards, Cyril http://pentaxiste.org (PS: forgive me for previous post 'test') |
From: Alessandro R. <al...@pr...> - 2005-12-18 17:56:06
|
On 18-12-2005 at 18:01, Cyril MARION wrote: >I tried to install it on the web at this place : >http://pentaxiste.org/liste/ > >But when getting there, a nice 'error 500' message welcomes the users=20 >just try it ;-) Hello Cyril, whenever you get a 500 error you should first check your webserver's error log: it will explain in detail what went wrong. You also should correct the "archive" config option, that should actually point to /home/vpopmail/domains/pentaxiste.org/liste and not to archive/. Also, make sure the 'pentax' user can access the mailing list directory otherwise chown your index.cgi to the right user. - alessandro. =20 |
From: Cyril M. <pos...@pe...> - 2005-12-18 20:16:30
|
Alessandro Ranellucci a écrit : > Hello Cyril, > > whenever you get a 500 error you should first check your webserver's > error log: it will explain in detail what went wrong. You also should Hello Alessandro, the log file says only : 'cat pentax-access_log | grep 500' : [18/Dec/2005:20:45:22 +0100] "GET /liste/ HTTP/1.1" 500 613 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8) Gecko/20051111 Firefox/1.5" But when I grep on 'liste' I get that : [15:11:37] "GET /liste/ HTTP/1.1" 200 538 "-" [15:11:40] "GET /liste/config.pm HTTP/1.1" 200 2346 "http://www.pentaxiste.org/liste/" [15:11:47] "GET /liste/Changelog HTTP/1.1" 200 2182 "http://www.pentaxiste.org/liste/" [15:11:52] "GET /liste/README HTTP/1.1" 200 4115 "-" [16:02:10] "GET /liste/ HTTP/1.1" 500 613 "-" [16:02:10] "GET /erreur.css HTTP/1.1" 200 974 "http://www.pentaxiste.org/liste/" [16:03:10] "GET /liste/ HTTP/1.1" 500 494 "-" [16:04:18] "GET /liste/ HTTP/1.1" 500 494 "-" [16:09:06] "GET /liste/ HTTP/1.1" 500 494 "-" [16:13:48] "GET /liste/index.cgi HTTP/1.1" 500 618 "-" [16:26:56] "GET /liste/ HTTP/1.1" 500 613 "-" [16:34:00] "GET /liste/ HTTP/1.1" 500 613 "-" [16:44:31] "GET /liste/ HTTP/1.1" 500 613 "-" [16:53:17] "GET /liste/search/ HTTP/1.1" 200 686 "-" [16:53:17] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://pentaxiste.org/liste/search/" [16:53:17] "GET /icons/back.gif HTTP/1.1" 200 216 "http://pentaxiste.org/liste/search/" [16:53:18] "GET /icons/p.gif HTTP/1.1" 200 237 "http://pentaxiste.org/liste/search/" [16:53:22] "GET /liste/search/ez_indexer.pl HTTP/1.1" 500 494 "http://pentaxiste.org/liste/search/" [16:53:35] "GET /liste/lang/ HTTP/1.1" 200 492 "-" [16:53:35] "GET /icons/unknown.gif HTTP/1.1" 200 245 "http://pentaxiste.org/liste/lang/" [16:53:42] "GET /liste/lang/fr.pm HTTP/1.1" 200 991 "http://pentaxiste.org/liste/lang/" [16:53:48] "GET /liste/ HTTP/1.1" 500 494 "http://pentaxiste.org/liste/lang/" [18:10:29] "GET /liste/ HTTP/1.0" 500 482 "-" [18:10:30] "GET /erreur.css HTTP/1.0" 200 974 "http://pentaxiste.org/liste/" [18:10:30] "GET /images/erreurLogo.jpg HTTP/1.0" 200 2358 "http://pentaxiste.org/liste/" [18:50:11] "GET /liste/ HTTP/1.1" 500 494 "-" [18:50:11] "GET /erreur.css HTTP/1.1" 200 974 "http://pentaxiste.org/liste/" [18:50:11] "GET /images/erreurLogo.jpg HTTP/1.1" 200 2358 "http://pentaxiste.org/liste/" [18:57:12] "GET /liste/ HTTP/1.0" 500 825 "-" [18:57:12] "GET /erreur.css HTTP/1.0" 200 974 "http://pentaxiste.org/liste/" [18:57:13] "GET /images/erreurLogo.jpg HTTP/1.0" 200 2358 "http://pentaxiste.org/liste/" [20:40:20] "GET /liste/ HTTP/1.1" 500 613 "-" [20:40:55] "GET /liste/ HTTP/1.1" 500 613 "-" [20:45:22] "GET /liste/ HTTP/1.1" 500 613 "-" > correct the "archive" config option, that should actually point to > /home/vpopmail/domains/pentaxiste.org/liste and not to archive/. done. > > Also, make sure the 'pentax' user can access the mailing list directory > otherwise chown your index.cgi to the right user. I change the user/group of all the files, after I discovered that the 'user:group' that owns the '/home/vpopmail/domains/pentaxiste.org/liste' directory was 'vpopmail:vchkpv' command 'll' on '/home/vpopmail/domains/pentaxiste.org/liste': drwx------ 8 vpopmail vchkpw 4096 déc 18 18:30 liste command 'll' on '/home/pentax/www/liste/': -rw-r--r-- 1 vpopmail vchkpw 2182 nov 2 17:51 Changelog -rw-r--r-- 1 vpopmail vchkpw 2401 déc 18 20:39 config.pm -rwxr-xr-x 1 vpopmail vchkpw 22342 nov 2 17:24 ezmlm-www.pl -rwxrwxrwx 1 vpopmail vchkpw 13735 déc 18 15:54 index.cgi -rw-r--r-- 1 vpopmail vchkpw 64 fév 15 2005 index.cgi.c drwxr-xr-x 2 vpopmail vchkpw 4096 déc 18 15:10 lang -rw-r--r-- 1 vpopmail vchkpw 4115 nov 2 18:00 README -rw-r--r-- 1 vpopmail vchkpw 832 nov 2 18:08 README.mod_perl -rw-r--r-- 1 vpopmail vchkpw 2178 nov 2 17:58 README.search drwxr-xr-x 2 vpopmail vchkpw 4096 déc 18 15:10 search -rw-r--r-- 1 vpopmail vchkpw 1376 oct 28 11:00 style.css It still doesn not work, as I still get an error 500 when accessing the directory. I am sorry to submit such bulk material. I hope you can help without being too much disturbed. Many thanks in advance. Cyril |
From: Alessandro R. <al...@pr...> - 2005-12-19 12:30:09
|
On 18-12-2005 at 21:16, Cyril MARION wrote: >the log file says only : > >'cat pentax-access_log | grep 500' : You have to check your error log, not the access log. Also, always grep the error log with a bit of context (grep -C) so that you catch details of errors too. >-rwxr-xr-x 1 vpopmail vchkpw 22342 nov 2 17:24 ezmlm-www.pl >-rwxrwxrwx 1 vpopmail vchkpw 13735 d=E9c 18 15:54 index.cgi You forgot to chmod 4711 index.cgi after changing its owner. - alessandro. =20 |
From: Cyril M. <pos...@pe...> - 2005-12-19 20:51:17
|
Alessandro Ranellucci a écrit : > You have to check your error log, not the access log. Thank you. The error log file now gives : [Mon Dec 19 21:26:08 2005] [error] [client 213.41.173.170] Premature end of script headers: /home/pentax/www/liste/index.cgi > You forgot to chmod 4711 index.cgi after changing its owner. Done : -rw-r--r-- 1 vpopmail vchkpw 2182 nov 2 17:51 Changelog -rw-r--r-- 1 vpopmail vchkpw 2401 déc 18 21:28 config.pm -rwxr-xr-x 1 vpopmail vchkpw 22342 nov 2 17:24 ezmlm-www.pl -rws--x--x 1 vpopmail vchkpw 13735 déc 18 15:54 index.cgi -rw-r--r-- 1 vpopmail vchkpw 64 fév 15 2005 index.cgi.c drwxr-xr-x 2 vpopmail vchkpw 4096 déc 18 15:10 lang -rw-r--r-- 1 vpopmail vchkpw 4115 nov 2 18:00 README -rw-r--r-- 1 vpopmail vchkpw 832 nov 2 18:08 README.mod_perl -rw-r--r-- 1 vpopmail vchkpw 2178 nov 2 17:58 README.search drwxr-xr-x 2 vpopmail vchkpw 4096 déc 18 15:10 search -rw-r--r-- 1 vpopmail vchkpw 1376 oct 28 11:00 style.css > In addition I tried to launch the program in command line and get this error : # ./index.cgi Content-type: text/html <h1>Software error:</h1> <pre>Can't locate Mail/Ezmlm/Archive.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at ./ezmlm-www.pl line 16. BEGIN failed--compilation aborted at ./ezmlm-www.pl line 16. </pre> <p> For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. </p> [Mon Dec 19 21:27:51 2005] ezmlm-www.pl: Can't locate Mail/Ezmlm/Archive.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at ./ezmlm-www.pl line 16. [Mon Dec 19 21:27:51 2005] ezmlm-www.pl: BEGIN failed--compilation aborted at ./ezmlm-www.pl line 16. I hope this helps... I locate my Archive.pm at this place : /usr/local/lib/perl5/site_perl/5.8.7/i686-linux/auto/Mail/Ezmlm/Archive I'll try to modify the ezmlm-www.pl file to change /usr/lib into usr/local/lib Many thanks for your help, and have a nice evening. Cheers Cyril |
From: Alessandro R. <al...@pr...> - 2005-12-21 15:13:15
|
On 19-12-2005 at 21:50, Cyril MARION wrote: >[Mon Dec 19 21:27:51 2005] ezmlm-www.pl: Can't locate >Mail/Ezmlm/Archive.pm in @INC (@INC contains:=20 >/usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 >/usr/lib/perl5/site_perl/5.8.7/i686-linux >//usr/lib/perl5/site_perl/5.8.7 usr/lib/perl5/site_perl/5.6.0 >//usr/lib/perl5/site_perl .) at=20 >../ezmlm-www.pl line 16. >[Mon Dec 19 21:27:51 2005] ezmlm-www.pl: BEGIN failed--compilation=20 >aborted at ./ezmlm-www.pl line 16. > >I hope this helps... I locate my Archive.pm at this place : >/usr/local/lib/perl5/site_perl/5.8.7/i686-linux/auto/Mail/Ezmlm/Archive It seems like you have two Perls installed in your system. You can do one of the following things (you choose): 1) change the first line of ezmlm-www.pl replacing /usr/bin/perl with=20 /usr/local/bin/perl, or 2) install Mail::Ezmlm::Archive under /usr, that is with the command=20 /usr/bin/perl -MCPAN -e shell - alessandro. =20 |
From: Cyril M. <pos...@pe...> - 2005-12-29 18:24:55
|
Alessandro Ranellucci a écrit : >It seems like you have two Perls installed in your system. You can do >one of the following things (you choose): > >1) change the first line of ezmlm-www.pl replacing /usr/bin/perl with > /usr/local/bin/perl, or > >2) install Mail::Ezmlm::Archive under /usr, that is with the command > /usr/bin/perl -MCPAN -e shell > > > Dear Alessandro, You have been so kind to bend over my problem; I'm very grateful. Unfortunately, none of the two methods you suggested have worked. First I changed the first line of ezmlm-www.pl with the right path, but no changes Then I re-installed the ezmlm archive under /usr, but no changes as well I even tried to recompile index.cgi.c to index.cgi, but no success as well. I restarted the http server, but still no changes Allways the same error-500 message when accessing the ezmlm-archive files located at : http://pentaxiste.org/liste/ When I check the error_log file, it says now : # Premature end of script headers: /home/pentax/www/liste/index.cgi Maybe its a version of perl problem ? I do not know. Per haps someone has an idea ? or even better maybe a solution ? Regards to everybody, Cyril |
From: Cyril M. <pos...@pe...> - 2005-12-29 18:38:25
|
in addition to my previous messages, now when I locate Archive.pm I found two versions : /usr/local/lib/perl5/site_perl/5.8.7/Mail/Ezmlm/Archive.pm /usr/local/lib/perl5/site_perl/5.8.7/User/Identity/Archive.pm I suppose both are good installs, but non is called correctly Regards, Cyril |