PHP 4.0.2 can't find mysql shared objects


Subject: PHP 4.0.2 can't find mysql shared objects
From: Tom Arnold (tarnold@smpllc.com)
Date: Thu Sep 21 2000 - 07:06:35 MDT


Like 40% of the other people posting here, I'm a newbie trying to get Apache
1.3.12, mysql-3.22.32, and PHP 4.0.2 working together.

I've installed several times with only partial success. I've since found
more complete instructions that indicate a little more clearly *where* the
various modules should go. I could probably reinstall ydlinux and get a
clean start and make it work. But at this point, I don't want to just start
all over again. Instead I want to understand *why* my current setup is
broken. Then I may (or may not) have to start all over. It seems to me
impractical to start from scratch every time something goes wrong,
especially once I get a system up and in daily operation doing important
stuff in my business.

I suspect that something simple is screwed up, or maybe a couple of simple
things.

When I try to restart apache (with PHP configured to run) it won't work. If
I run apachectl configtest, I get this error:
"Cannot load /usr/local/apache_1.3.12/libexec/libphp4.so into server:
libmysqlclient.so.6:cannot open shared object file: No such file or
directory"

I have installed apache in /usr/local/apache_1.3.12
PHP is installed in /usr/local/bin/php
mysql is installed in /root/mysql-3.22.32/client/.libs
There is a link from /usr/local/mysql to mysql-3.22.32
/usr/local/mysql-3.22.32 also exists and has the various subdirectories with
the executables and libraries.

The file libmysqlclient.so.6 does exist in /root/mysql-3.22.32
Also, /usr/local/mysql-3.22.32/lib/mysql has a file anmed
libmysqlclient.so.6 which is a link to libmyqlclient.so.6.0.0

Can anybody make sense of this mess? Where does the PHP module expect to
find libraries (shared objects)? How do I find out where it's looking? Can I
move files or make links so that the existing install will work? Or do I
have to start over? Several different people have told me that installing
things in the "standard" locations will work, but there seem to be many
ideas of what the "standard" locations are! YDLINUX puts things in VERY
different places than a source build etc.

This is REALLY slowing me down. Thanks for any help!



This archive was generated by hypermail 2a24 : Thu Sep 21 2000 - 07:13:18 MDT