Click to See Complete Forum and Search --> : PHP3 + MySQL + Apache : httpd fails


Anon
08-02-2000, 08:09 PM
Hello,

I used to work with PostgreSQL and I had no problem compiling PHP.

I work now with MySQL and my Apache server doesn't want to start :

I use : RedHat 6.0
Apache 1.3.12-2
MySQL-devel-3.23.22-1.i386.rpm
PHP 3.0.16

I compile PHP with :
./configure --with-apxs=/usr/sbin/apxs \
--with-apache=/etc/httpd \
--with-mysql=/usr
make
make install

after that, I edited httpd.conf...

Everything is fine BUT when I start my httpd :

Cannot load /etc/httpd/modules/libphp3.so into server : /etc/httpd/modules/libphp3.so : undefined symbol : compress


*** IMPORTANT NOTE ***
httpd works fine if I remove the --with-mysql option before compiling PHP.

Anyone has some info about that ???

Thank you !

Anon
08-03-2000, 01:26 AM
copy libmysqlclient.so to /usr/local/apache/libexec

add line in http.conf:

LoadFile libexec/libmysqlclient.so

then run start apache.

Good lucky.

Anon
08-03-2000, 06:09 AM
I can't find this file...
I have
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la

but nowhere .so...

during the compilation of libphp3.so, gcc links with mibmysqlclient.a


*** NOTE ***
httpd starts without problem if I use MySQL 3.22.32 libraries instead of 3.23.22...