Re: Closer to installation
John Kolvereid wrote: > Hi Stas, > I have been watching my error_log. Here is what I > have found so far (in a nut shell): mod_perl and php4 > cannot co-exist. I have documented as best I can my > findings in hopes that someone can 'fix' this problem: John, we are going in circles here: > apachectl start > ---error log > [Tue Apr 2 17:49:09 2002] [notice] Apache/1.3.23 > (Unix) mod_perl/1.26 PHP/4.0.6 mod_ssl/2.8.7 > OpenSSL/0.9.6b configured -- resuming normal > operations > [Tue Apr 2 17:49:09 2002] [notice] Accept mutex: > sysvsem (Default: sysvsem) > > > available - nothing > "The document contained no data" appears in place of > any web page > > ---error log > [Tue Apr 2 17:49:40 2002] [notice] child pid 17034 > exit signal Segmentation fault (11) > All I wanted is this logged message explaining why the page wasn't served. We have it now (you posted this earlier as well) Now please reread my earlier replies to you explaining how to get a core file dumped when Segfault happens and how to send to the modperl a backtrace, which will help to identify the problem. The debug is actually an easy thing to do: you have a problem with the script not doing the job 1. you go to the error_log file 1a. it's either a broken script, which you fix 1b. or it's a segfault 2. if it's a segfault you need to get the core file 3. you use gdb to get the backtrace from the core file (see the SUPPORT file) 4. you try to understand what the problem is by looking at the trace. if you don't understand it you send it to the list using the bugreport.pl script. __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Closer to installation
Hi Stas, I have been watching my error_log. Here is what I have found so far (in a nut shell): mod_perl and php4 cannot co-exist. I have documented as best I can my findings in hopes that someone can 'fix' this problem: mod_perl only: - building Apache configure \ --enable-module=info \ --enable-module=status \ --activate-module=src/modules/perl/libperl.a \ --enable-module=perl \ --prefix=/usr/local/apache httpd.conf no LoadModules no AddModules apachectl start ---error log [Tue Apr 2 17:16:47 2002] [notice] Apache/1.3.23 (Unix) mod_perl/1.26 configured -- resuming normal operations [Tue Apr 2 17:16:47 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) available mod_perl no SSL no PHP mod_perl and SSL: building Apache SSL_BASE=../openssl-0.9.6b \ configure \ --enable-module=info \ --enable-module=status \ --enable-module=proxy \ --enable-shared=proxy \ --enable-module=ssl \ --enable-shared=ssl \ --activate-module=src/modules/perl/libperl.a \ --enable-module=perl \ --prefix=/usr/local/apache httpd.conf LoadModule ssl_module libexec/libssl.so LoadModule perl_module libexec/libperl.so AddModules mod_ssl.c AddModules mod_perl.c apachectl start ---error log [Tue Apr 2 18:01:35 2002] [notice] Apache/1.3.23 (Unix) mod_perl/1.26 mod_ssl/2.8.7 OpenSSL/0.9.6b configured -- resuming normal operations [Tue Apr 2 18:01:35 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) available mod_perl SSL no PHP mod_perl and SSL and php4: - building Apache same configuration httpd.conf LoadModule ssl_module libexec/libssl.so LoadModule perl_module libexec/libperl.so LoadModule php4_module libexec/libphp4.so AddModules mod_ssl.c AddModules mod_perl.c AddModules mod_php4.c apachectl start ---error log [Tue Apr 2 17:49:09 2002] [notice] Apache/1.3.23 (Unix) mod_perl/1.26 PHP/4.0.6 mod_ssl/2.8.7 OpenSSL/0.9.6b configured -- resuming normal operations [Tue Apr 2 17:49:09 2002] [notice] Accept mutex: sysvsem (Default: sysvsem) available - nothing "The document contained no data" appears in place of any web page ---error log [Tue Apr 2 17:49:40 2002] [notice] child pid 17034 exit signal Segmentation fault (11) Hope this helps. Thanks. John Kolvereid --- Stas Bekman <[EMAIL PROTECTED]> wrote: > John, when debugging problems one should closely > watch the error_log > file (usually open with tail -f). It always tells > you what the problem > is. So what does it say with your latest problem? > > __ > Stas BekmanJAm_pH --> Just Another > mod_perl Hacker > http://stason.org/ mod_perl Guide ---> > http://perl.apache.org > mailto:[EMAIL PROTECTED] http://use.perl.org > http://apacheweek.com > http://modperlbook.org http://apache.org > http://ticketmaster.com > __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/
Re: Closer to installation
John, when debugging problems one should closely watch the error_log file (usually open with tail -f). It always tells you what the problem is. So what does it say with your latest problem? __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Closer to installation
Me again, I removed the lines --activate-module=src/modules/perl/libperl.a --enable-module=perl and recompiled Apache. Then I commented out the line AddModule mod_perl.c from my httpd.conf. Now I don't get the msg: 'The document contained no data' Moreover, I can open my home page as before. Also I can load my 'hello.pl' from the Apache::Registry location /perl/hello.pl. The only thing I can't do now is to load the 'hello.pl' from a web page. I am trying as I do w/ CGI scripts. What appears in the browser is the text of the page rather than the html. Yet the very same page appears fine when I load it directly w/ URL: /odin/perl/hello.pl For reference my mod_perl.conf file is PerlRequire conf/mod_perl.pl PerlFreshRestart On SetHandler perl-script PerlHandler Apache::Hello Alias /perl/ /home/httpd/perl/ SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options ExecCGI Allow from all Any thoughts. Thanks John Kolvereid __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/