Click to See Complete Forum and Search --> : help! libphp4.so cannot be loaded :(


Anon
08-29-2001, 02:20 AM
Hi

I'm have severe trouble on a Redhat 7.0 box trying to install php with mysql on apache.

I did a fresh Redhat install, but did not install the Apache, MySql and PHP RPMs. I downloaded these and compiled apache with modules and all c libraries enabled. The Apache installation worked perfect and I could browse to the site. I am also able to use the mod-ssl with no problems. I took off mod-ssl, then compiled and installed MySql. My database works perfectly and I can make connections to it from a remote host.

I downloaded and compiled PHP 4.0.6 with the following compile configuration:

./configure --with-apxs=---path-to-apxs --with-mysql=---path to mysql

The configuration goes smoothly and the PHP license appears in its own block. I run make and make install, but when trying to fire up apache I get the following error:

cannot load libphp4.so into server: undefined symbol: uncompress

I installed zlib from the source thinking that this may be the problem, but after repeating the entire process, apache throws out the same error.

I have performed similar installations on many boxes prior to this, from mandrake to freebsd. Is it perhaps a Redhat related problem?

Any help would be massively appreciated,

Thanks in advance

M

Anon
08-29-2001, 05:44 PM
Your configure script is alittle funny.

Try, instead, this:

rm config.cache

./configure --with-apxs --with-mysql


make sure that the lib's directory to the mysql libs is in /etc/ld.so.conf

This fixed my redhat 7.1 problem.