php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4234 Apache fails to load libphp4.so: libmysqlclient.so.6 cannot open shared object
Submitted: 2000-04-25 12:30 UTC Modified: 2000-06-10 02:06 UTC
From: info at karenliu dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Release Candidate 1 OS: Redhat Linux 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: info at karenliu dot com
New email:
PHP Version: OS:

 

 [2000-04-25 12:30 UTC] info at karenliu dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-10 02:06 UTC] zeev at cvs dot php dot net
You should add /usr/local/lib/mysql to ld's search path (LD_LIBRARY_PATH, or /etc/ld.so.conf
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 02:01:26 2025 UTC