Apache module loaded twice ? PHP 5

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
jult
Posts: 40
Joined: 2007/01/04 02:10:11
Location: Amsterdam, .NL
Contact:

Apache module loaded twice ? PHP 5

Post by jult » 2007/11/18 17:59:24

I've installed httpd and php through a default yum config in a blank empty CentOS 5 image.

Now, when I do
# /etc/init.d/httpd restart
I get

[code]Stopping httpd: [ OK ]
Starting httpd: [Sun Nov 18 12:49:16 2007] [warn] module php5_module is already loaded, skipping [ OK ][/code]

Which is strange, because I can't find any module with php in its name loaded inside httpd.conf
The only one there is in /etc/httpd/conf.d/php.conf
and when I comment that one out, php 5 isn't working..

Anyone?
PHP works fine with (post) the warning though.


By the way, this manual for eaccelerator is incorrect:
http://www.howtoforge.com/eaccelerator_php5_centos5.0
The eaccelerator.ini line:
extension="eaccelerator.so"
doesn't load it. It has to be:
zend_extension="/usr/lib64/php/modules/eaccelerator.so"
instead!

yyagol
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E
Contact:

Re: Apache module loaded twice ? PHP 5

Post by yyagol » 2007/11/18 20:33:35

It reminds me of the story when the child ask his father :
"..father, why does the sun rise in the east and downfall at the west ? "
his father think for a minute then tell him : " sun, is it working ? then leave it that way !!! "
:lol:

pharaoh
Posts: 1
Joined: 2005/02/14 19:10:25
Location: St. Petersburg, FL

Apache module loaded twice ? PHP 5

Post by pharaoh » 2007/11/26 23:01:43

You could just cat everything there and grep for the module; it pretty much has to be in there twice, or in one of the extras that you're also loading
[code]cat * | grep libphp5.so[/code]

jult
Posts: 40
Joined: 2007/01/04 02:10:11
Location: Amsterdam, .NL
Contact:

Re: Apache module loaded twice ? PHP 5

Post by jult » 2007/11/28 14:23:01

[quote]
yyagol wrote:
It reminds me of the story when the child ask his father :
"..father, why does the sun rise in the east and downfall at the west ? "
his father think for a minute then tell him : " sun, is it working ? then leave it that way !!! "
:lol:[/quote]The Sun doesn't spit out warnings though.

I did a search for libphp5.so under /etc/*
Only results in (as I've already concluded and stated) 1 entry:

LoadModule php5_module modules/libphp5.so in php.conf

So, again: Where does it load twice? Honestly, I would have to file this as a bug!

Post Reply