Hi everyone! I promise I tried to find this problem in the list
archives/FAQ - no luck!
 
Everything (apache/mysql/php) compiles nicely, with no complaints at
all, but, when Apache tries to load libphp4.so, it complains that it
can't find libmysqlclient.so.10
 
Before you tell me to load the dev RPM(s), etc, please take a quick look
at the configuration!
 
* RedHat 7.2, kernel 2.4.13 (intel smp, compiled from source)
* php 4.0.7, src in /opt/src/php-4.0.6
* Apache 1.3.22, src in /opt/src/apache_1.3.22, binary in
/opt/bin/apache
* MySql 3.23.43, src in /opt/src/mysql-3.23.43, binary in /opt/bin/mysql
 
the /opt/bin/* dirs are NOT symlinks, and everything is compiled from
source in /opt/src/*
 
* php compile options:
./configure --with-mysql=/opt/bin/mysql
--with-apxs=/opt/bin/apache/bin/apxs
 
* error:
shell> pwd
/opt/bin/apache/bin
shell> ./apachectl configtest
Syntax error on line 236 of /opt/bin/apache/conf/httpd.conf:
Cannot load /opt/bin/apache/libexec/libphp4.so into server:
libmysqlclient.so.10: cannot open shared object file: No such file or
directory
 
* line 236 of httpd.conf
LoadModule php4_module        libexec/libphp4.so
 
* confirmed:
Apache runs without libphp
MySql runs, and local clients can connect (/opt/bin/mysql/bin/mysql -p
for example)
php loads and runs IF ./configure --without-mysql
--with-apxs=/opt/bin/apache/bin/apxs
 
* tried:
copying mysql/lib to /usr/local/mysql/lib
copying mysql/lib/libphp4.so to /opt/bin/apache/libexec
 
* don't want to:
install RedHat default mysql
install RedHat default php
install RedHat default mysql
 
Thanks everyone! I sure hope this isn't an impossible configuration,
it's how I like to setup all my systems, and this is the first one where
the client is demanding php! Now what good is php without mysql to back
it up!?
 
Thanks and Best Regards,
Lorenzo Gonzalez


Reply via email to