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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 20:01:29 2024 UTC