You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Alfred Vahau <al...@upng.ac.pg> on 2002/07/31 06:14:04 UTC

Problems with Apache/Mod_perl Server

 Hello,

I am posting this matter to the list because  it takes so long from my
end of the world to download the relevant information for trouble
shooting. My problem is as follows:

I downloaded mod_perl-1.26 and apache_1.3.24  in May this year. I
followed all the instructions in the mod_perl guide on how to set up the
server and had it running successfully without any problems.
Now I decided to upgrade to mod_perll-1.27 and apache_1.3.26.
I downlloaded from the mirror site at nagoya.
I am following the same instructions which are, after uncompressing
them:

1. perl Makefile.PL APACH_SRC = ../apache_1.3.26/src \
DO_HTTPD = 1 USE_APACI = 1 EVERYTHING = 1

Everthing goes smoothly. Then:

2. make && make test && make install

The executiion is smooth until the test part which I believe fails and
hence the install leg is aborted?

The error output at the end is:

../apache_1.3.26/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 9

The t/logs/error_log reads

[notice] Destruction->DESTROY called for $global_object
Prototype mismatch: sub Socket::INADDR_ANY vs () at
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 328.
Prototype mismatch: sub Socket::INADDR_BROADCAST vs () at
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 329.
Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 330.
Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 331.
[Wed Jul 31 13:12:16 2002] [warn] [notice] child_init for process 3690,
report any problems to [no address given]

3. Then I backup into the apache_1.3.26 directory and issue

make install

I am congratulated for a successful installation.

4. The I issue (as root)

/usr/local/apache/bin/apachectl start and the error message from the
/usr/local/apache/logs/error_log

[Tue Jul 30 16:01:52 2002] [alert] httpd: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName
Apache.pm failed to load!.
[Tue Jul 30 16:37:55 2002] [alert] httpd: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName
[Tue Jul 30 16:37:55 2002] [warn] pid file
/usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of
previous Apache run?
Apache.pm failed to load!.
[Wed Jul 31 12:27:57 2002] [alert] httpd: Could not determine the
server's fully qualified domain name, using 127.0.0.1 for ServerName
[Wed Jul 31 12:27:57 2002] [warn] pid file
/usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of
previous Apache run?
Apache.pm failed to load!.

I think the failure is due to incomplete mod_perl installation.

As I pointed out earlier, the earlier versions of mod_perl and apache
were installed successfully. I was configuring the httpd.conf file to
run some cgi scripts which did not execute very well but I think can fix
that.
I've spent the past 48 hours trying to trouble shoot the trouble as much
as I can but access to information  is so very frustrating from this end
of the world..

I am using Perl 5.6.1 on Linux 7.1. I installed the mod_perl and apache
packages which came with the box but did not use them so had them
unstalled.

Any pointers to where I can start meaningful trouble-shooting would be
greatly appreciated.

Thanks in advance,

Alfred Vahau
School of Natural and Physical Sciences
Uni. PNG






Re: Problems with Apache/Mod_perl Server

Posted by Alfred Vahau <al...@upng.ac.pg>.
My apologies. Thought I posted to the list

Thanks for the help.

Alfred,

Alfred Vahau wrote:
> The server's up and running.
> 
> Thanks for the /etc/hosts tip
> 
> I actually had the line as
> 
> 127.0.0.1 bullen localhost.localdomain localhost
> 
> So I commented out that and entered it as
> 
> 127.0.0.1 localhost.localdomain localhost
> 
> and sure enough that served the Apache page as it should for the first time.
> 
> I appreciate the help. I will continue to look into Perl 5.6.0 and 5.6.1 paths
> though.

Good, but please reply to the list, so others know that your problem has 
been solved.

> -----------
> 
> This is off topic but ever hear of the site naver.com? The postings to modperl
> had been intercepted and returned to me with encrypted messages and a naver.com
> site with Korean or Japanese characters. Not a clue about the site. I suspect
> that this posting is going to be intercepted and copied to me. Wonder if its a
> robot?

no clue

> -------------------
> 
> Alfred,
> 
> Stas Bekman wrote:
> 
> 
>>Alfred Vahau wrote:
>>
>>>Thanks for the leads. My concentration definitely lapsed over the make test
>>>failure.
>>>I ran make install regardless and all was well. I attempted to start the
>>>server without success.
>>>Here's the error message from the error_log
>>>
>>>[Wed Jul 31 15:03:13 2002] [alert] httpd: Could not determine the server's
>>>fully qualified domain name, using 127.0.0.1 for ServerName
>>
>>add to /etc/hosts:
>>127.0.0.1               localhost.localdomain localhost
>>
>>
>>>[Wed Jul 31 15:03:13 2002] [warn] pid file /usr/local/apache/logs/httpd.pid
>>>overwritten -- Unclean shutdown of previous Apache run?
>>>[Wed Jul 31 15:03:13 2002] [notice] Apache/1.3.26 (Unix) mod_perl/1.27
>>>configured -- resuming normal operations
>>>[Wed Jul 31 15:03:13 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
>>
>>So it starts normally.
>>
>>
>>>perl -V reports Perl version 5.6.0 which came with the Red Hat box whereas
>>>I downloaded 5.6.1 from CPAN and installed it. Conflict in libraries? I may
>>>have to try installing Perl 5.6.1 again.
>>>I'll report the results.
>>
>>If perl -V reports 5.6.0 you must be running 5.6.0 ;) may be you have
>>installed perl into /usr/local/bin and /usr/bin comes earlier in the
>>path so it picks 5.6.0.
>>
>>Doesn't RH carry 5.6.1 rpms? You could try to uninstall 5.6.0 binaries
>>though I can see that you will have dependencies problems.
>>
>>__________________________________________________________________
>>Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
>>http://stason.org/     mod_perl Guide ---> http://perl.apache.org
>>mailto:stas@stason.org http://use.perl.org http://apacheweek.com
>>http://modperlbook.org http://apache.org   http://ticketmaster.com
> 



-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: Problems with Apache/Mod_perl Server

Posted by Stas Bekman <st...@stason.org>.
Alfred Vahau wrote:
> Thanks for the leads. My concentration definitely lapsed over the make test
> failure.
> I ran make install regardless and all was well. I attempted to start the
> server without success.
> Here's the error message from the error_log
> 
> [Wed Jul 31 15:03:13 2002] [alert] httpd: Could not determine the server's
> fully qualified domain name, using 127.0.0.1 for ServerName

add to /etc/hosts:
127.0.0.1               localhost.localdomain localhost

> [Wed Jul 31 15:03:13 2002] [warn] pid file /usr/local/apache/logs/httpd.pid
> overwritten -- Unclean shutdown of previous Apache run?
> [Wed Jul 31 15:03:13 2002] [notice] Apache/1.3.26 (Unix) mod_perl/1.27
> configured -- resuming normal operations
> [Wed Jul 31 15:03:13 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)

So it starts normally.

> perl -V reports Perl version 5.6.0 which came with the Red Hat box whereas
> I downloaded 5.6.1 from CPAN and installed it. Conflict in libraries? I may
> have to try installing Perl 5.6.1 again.
> I'll report the results.

If perl -V reports 5.6.0 you must be running 5.6.0 ;) may be you have 
installed perl into /usr/local/bin and /usr/bin comes earlier in the 
path so it picks 5.6.0.

Doesn't RH carry 5.6.1 rpms? You could try to uninstall 5.6.0 binaries 
though I can see that you will have dependencies problems.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Problems with Apache/Mod_perl Server

Posted by Alfred Vahau <al...@upng.ac.pg>.
Thanks for the leads. My concentration definitely lapsed over the make test
failure.
I ran make install regardless and all was well. I attempted to start the
server without success.
Here's the error message from the error_log

[Wed Jul 31 15:03:13 2002] [alert] httpd: Could not determine the server's
fully qualified domain name, using 127.0.0.1 for ServerName
[Wed Jul 31 15:03:13 2002] [warn] pid file /usr/local/apache/logs/httpd.pid
overwritten -- Unclean shutdown of previous Apache run?
[Wed Jul 31 15:03:13 2002] [notice] Apache/1.3.26 (Unix) mod_perl/1.27
configured -- resuming normal operations
[Wed Jul 31 15:03:13 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)

perl -V reports Perl version 5.6.0 which came with the Red Hat box whereas
I downloaded 5.6.1 from CPAN and installed it. Conflict in libraries? I may
have to try installing Perl 5.6.1 again.
I'll report the results.

Thanks,

Alfred,




Stas Bekman wrote:

> Alfred Vahau wrote:
> >  Hello,
> >
> > I am posting this matter to the list because  it takes so long from my
> > end of the world to download the relevant information for trouble
> > shooting. My problem is as follows:
> >
> > I downloaded mod_perl-1.26 and apache_1.3.24  in May this year. I
> > followed all the instructions in the mod_perl guide on how to set up the
> > server and had it running successfully without any problems.
> > Now I decided to upgrade to mod_perll-1.27 and apache_1.3.26.
> > I downlloaded from the mirror site at nagoya.
> > I am following the same instructions which are, after uncompressing
> > them:
> >
> > 1. perl Makefile.PL APACH_SRC = ../apache_1.3.26/src \
> > DO_HTTPD = 1 USE_APACI = 1 EVERYTHING = 1
> >
> > Everthing goes smoothly. Then:
> >
> > 2. make && make test && make install
> >
> > The executiion is smooth until the test part which I believe fails and
> > hence the install leg is aborted?
> >
> > The error output at the end is:
> >
> > ../apache_1.3.26/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 9
> >
> > The t/logs/error_log reads
> >
> > [notice] Destruction->DESTROY called for $global_object
> > Prototype mismatch: sub Socket::INADDR_ANY vs () at
> > /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 328.
> > Prototype mismatch: sub Socket::INADDR_BROADCAST vs () at
> > /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 329.
> > Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
> > /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 330.
> > Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
> > /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 331.
> > [Wed Jul 31 13:12:16 2002] [warn] [notice] child_init for process 3690,
> > report any problems to [no address given]
>
> [...]
>
> > I think the failure is due to incomplete mod_perl installation.
>
> of course. You run:
>
> make && make test && make install
>
> 'make test' fails, and therefore 'make install' is not run. simply run it.
>
> regarding the failing 'make test', you say that you run 5.6.1, and the
> error shows 5.6.0 in the path, how so? what your 'perl -V' says? I guess
> you have libs from 5.6.0 installed and they get on the way.
>
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Problems with Apache/Mod_perl Server

Posted by Stas Bekman <st...@stason.org>.
Alfred Vahau wrote:
>  Hello,
> 
> I am posting this matter to the list because  it takes so long from my
> end of the world to download the relevant information for trouble
> shooting. My problem is as follows:
> 
> I downloaded mod_perl-1.26 and apache_1.3.24  in May this year. I
> followed all the instructions in the mod_perl guide on how to set up the
> server and had it running successfully without any problems.
> Now I decided to upgrade to mod_perll-1.27 and apache_1.3.26.
> I downlloaded from the mirror site at nagoya.
> I am following the same instructions which are, after uncompressing
> them:
> 
> 1. perl Makefile.PL APACH_SRC = ../apache_1.3.26/src \
> DO_HTTPD = 1 USE_APACI = 1 EVERYTHING = 1
> 
> Everthing goes smoothly. Then:
> 
> 2. make && make test && make install
> 
> The executiion is smooth until the test part which I believe fails and
> hence the install leg is aborted?
> 
> The error output at the end is:
> 
> ../apache_1.3.26/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 9
> 
> The t/logs/error_log reads
> 
> [notice] Destruction->DESTROY called for $global_object
> Prototype mismatch: sub Socket::INADDR_ANY vs () at
> /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 328.
> Prototype mismatch: sub Socket::INADDR_BROADCAST vs () at
> /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 329.
> Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
> /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 330.
> Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at
> /usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 331.
> [Wed Jul 31 13:12:16 2002] [warn] [notice] child_init for process 3690,
> report any problems to [no address given]

[...]

> I think the failure is due to incomplete mod_perl installation.

of course. You run:

make && make test && make install

'make test' fails, and therefore 'make install' is not run. simply run it.

regarding the failing 'make test', you say that you run 5.6.1, and the 
error shows 5.6.0 in the path, how so? what your 'perl -V' says? I guess 
you have libs from 5.6.0 installed and they get on the way.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com