Click to See Complete Forum and Search --> : httpd.conf won't work w/ php4_module


Anon
08-10-2000, 07:46 PM
Why won\'t

LoadModule php4_module /usr/sbin/apache/libexec/libphp4.so

work in my httpd.conf file????

Ok...

I\'m trying to install PHP 4.0.1pl2 on Apache 1.3.12 running RedHat Linux
6.1
I\'ve configured with apxs (I made the changes in the PHP Faq 6.11) and
MySQL

Make and make install happen with no problems

I go to my configure file which has successfully inserted:
LoadModule php4_module /usr/sbin/apache/libexec/libphp4.so (yes it\'s
the correct file path)

So I\'m happy right? Well, I\'m so giddy that I type ./apachectl restart and
it RESTARTS. So, then I go to view my homepage, which is an index.html file
with php includes and Netscape tells me that \"The document contained no
data\".

Sure there is. There\'s plenty of data. So I run a ./apachectl configtest
and
I get Syntax OK returned. I try restarting it again. Still no luck.

THEN I try restarting it a third time, and I get the following message.

kill: (9598) - No such pid./apachectl restart: httpd not running, trying to
start
./apachectl restart: httpd started>
I do another configtest and it gives me the same No such Pid answer. So
it\'s
not running successfully. I go back to httpd.conf and comment out the
LoadModule line.

Then I restart the httpd.conf file and my site\'s working again with data! But it\'s PHP 3.0.15 which is what I started with.

I ask again, Why won\'t LoadModule php4_module /usr/sbin/apache/libexec/libphp4.so work in my httpd.conf file????

Eric

Anon
08-17-2000, 10:24 PM
well I am not much further ahead than you. but..

there is also an AddModule line that has to uncommented

mine looks like..

AddModule mod_php4.c

i believe that unless you told php4 to build to allow both php3 and php4 you have comment out all the php3 references.

Anon
12-07-2001, 06:03 PM
hi,
I'm rather new to this posting stuff.. but I wanted to share what I have found.

I was building Apache, MySQL, and PHP4 also, and ran into a very similar problem, with the same error.

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: libmysqlclient.so.6: open failed: No such file or directory

I found a fix for this at:
http://www.oreillynet.com/cs/user/view/cs_msg/3854

{
find / -name libmysql* -print
copy libmysql* to /lib
restart apache
}

I really hope this helps, since I've spent 2 days on this issue too.