Installed OK, but fails immediately on tests
I have run 'perl Makefile.PL' and 'make' without error, following the mod_perl installation instructions, but when I run make test, the server is shown as 'failing to start' and the test sequence aborts. Further investigation shows that httpd has started successfully and the problem is in t/TEST, which tries to do a 'simple_fetch' of /test.html to demonstrate that the server is working, but this fails. I think the reason that it fails is that any attempt to GET a page using the server on port 8529 returns a 403 Forbidden code. A colleague wondered whether this port had to be included in /etc/services, but I can see no mention of this in the documentation. Some context: The server is running SunOS dusty 5.7 Generic sun4u sparc SUNW,Ultra-4 The server is also running a production version of Apache on port 80 (without mod_perl) Perl is v5.8.0 built for sun4-solaris I am attempting to install mod_perl-1.27 Here is the end of the transcript and what appears in the error_log /opt/apache_1.3.20/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t httpd listening on port 8529 will write error_log to: t/logs/error_log letting apache warm up...\c done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 29 {dusty:41} cat t/logs/error_log [notice] Destruction-DESTROY called for $global_object Subroutine fileparse_set_fstype redefined at /usr/local/lib/perl5/5.8.0/File/Bas ename.pm line 154. Subroutine fileparse redefined at /usr/local/lib/perl5/5.8.0/File/Basename.pm li ne 168. Subroutine basename redefined at /usr/local/lib/perl5/5.8.0/File/Basename.pm lin e 235. Subroutine dirname redefined at /usr/local/lib/perl5/5.8.0/File/Basename.pm line 248. Constant subroutine CGI::XHTML_DTD redefined at /usr/local/lib/perl5/5.8.0/const ant.pm line 108. [Mon Dec 23 21:44:18 2002] [warn] [notice] child_init for process 15493, report any problems to [no address given] {dusty:42} what's wrong? Thanks Nigel __ Professor Nigel Gilbert, FREng, AcSS, Pro Vice-Chancellor and Professor of Sociology, University of Surrey, Guildford GU2 7XH, UK. +44 (0)1483 689173
Re: Installed OK, but fails immediately on tests
Nigel Gilbert wrote: I have run 'perl Makefile.PL' and 'make' without error, following the mod_perl installation instructions, but when I run make test, the server is shown as 'failing to start' and the test sequence aborts. Further investigation shows that httpd has started successfully and the problem is in t/TEST, which tries to do a 'simple_fetch' of /test.html to demonstrate that the server is working, but this fails. I think the reason that it fails is that any attempt to GET a page using the server on port 8529 returns a 403 Forbidden code. A colleague wondered whether this port had to be included in /etc/services, but I can see no mention of this in the documentation. Some context: The server is running SunOS dusty 5.7 Generic sun4u sparc SUNW,Ultra-4 The server is also running a production version of Apache on port 80 (without mod_perl) Perl is v5.8.0 built for sun4-solaris I am attempting to install mod_perl-1.27 Here is the end of the transcript and what appears in the error_log /opt/apache_1.3.20/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t httpd listening on port 8529 will write error_log to: t/logs/error_log letting apache warm up...\c done /usr/bin/perl t/TEST 0 still waiting for server to warm up...not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 29 {dusty:41} cat t/logs/error_log [notice] Destruction-DESTROY called for $global_object Subroutine fileparse_set_fstype redefined at /usr/local/lib/perl5/5.8.0/File/Bas ename.pm line 154. Subroutine fileparse redefined at /usr/local/lib/perl5/5.8.0/File/Basename.pm li ne 168. Subroutine basename redefined at /usr/local/lib/perl5/5.8.0/File/Basename.pm lin e 235. Subroutine dirname redefined at /usr/local/lib/perl5/5.8.0/File/Basename.pm line 248. Constant subroutine CGI::XHTML_DTD redefined at /usr/local/lib/perl5/5.8.0/const ant.pm line 108. [Mon Dec 23 21:44:18 2002] [warn] [notice] child_init for process 15493, report any problems to [no address given] {dusty:42} what's wrong? The error_log is not very helpfull here, may be it's just slow to start? mod_perl 1.0's test suite waits too little before it gives up. So try: make start_httpd t/TEST make stop_httpd you can manually test whether the server is running by fetching localhost:8529, after 'make start_httpd'. If you are already doing that, and as you say you get 403, check the perms. And no, you don't need 8529 to be in /etc/services Also, any reason for using 1.3.20 and not the latest version of Apache 1.3? __ 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