PHP 4.0 Bug #4234: Apache fails to load libphp4.so: libmysqlclient.so.6 cannot open shared object
| From: | info at karenliu dot com | Date: | Tue, 25 Apr 2000 16:30:12 +0000 |
| Subject: | PHP 4.0 Bug #4234: Apache fails to load libphp4.so: libmysqlclient.so.6 cannot open shared object | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18183@lists.php.net to get a copy of this message | ||
From: info@karenliu.com
Operating system: Redhat Linux 6.2
PHP version: 4.0 Release Candidate 1
PHP Bug Type: MySQL related
Bug description: Apache fails to load libphp4.so: libmysqlclient.so.6 cannot open shared object
I built Apache with both PHP3 and PHP4 + MySQL.
Same MySQL setting "--with-mysql=/usr/local" was used in both PHP3 and PHP4. Compilation
seems ok, but when tried to start Apache, it returns error to load libphp4.so:
Syntax error on line 207 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/libexec/libphp4.so into server: libmysqlclient.so.6: cannot open
shared object file: No such file or directory
When I commented out the line for "libphp4.so", the Apache starts fine with just
"libphp3.so"
LoadModule php4_module libexec/libphp4.so
LoadModule php3_module libexec/libphp3.so
Looking into the libexec directory, both libphp4.so and libphp3.so are there, and
libmysqlclient.so.6 is also ok in /usr/local/lib/mysql/libmysqlclient.so.6
Please advise.