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!
Apache module loaded twice ? PHP 5
Re: Apache module loaded twice ? PHP 5
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:
"..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:
Apache module loaded twice ? PHP 5
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]
[code]cat * | grep libphp5.so[/code]
Re: Apache module loaded twice ? PHP 5
[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!
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!