installation problem

From: Date: Wed, 05 Sep 2001 20:08:23 +0000
Subject: installation problem
Groups: php.install 
Request: Send a blank email to php-install+get-4210@lists.php.net to get a copy of this message
I'm getting a syntax error that says apache can't load libphp4.so into the server because it cannot load libmysqlclient.so.10 as a shared object file. libmysqlclient.so.10 is on the system at /usr/local/mysql/libmysqlclient.s0.10, but I don't know how to tell Apache where to find it. Can anyone help? I'm using Apache 1.3.19, PHP 4.0.4pl1 and MySQL 3.23.39 on RedHat Linux 7.1. I uncommented the AddType appllication/x-httpd-php .php line in Apache and copied /usr/local/php/php.ini-dist to /usr/local/lib/php.ini as per instructions. I added this line to /usr/local/php/sapi/apache "EXTRA_LIBS=-L. -.php4 -lgdbm -L/usr/local/mysql/libs/mysql -Lmysqlclient", but that didn't solve the problem. I also added "/usr/local/mysql/libs/mysql" to my /etc/lo.so.conf file, but that didn't do anything either. I've been configuring PHP with "--with-apxs=/usr/local/apache/bin/apxs" rather than "--with-apache=/usr/local/apache". Does that make any difference? I also specified the directory for MySQL as "--with-mysql=/usr/local/mysql". Originally, I had tried to install PHP as a dynamic module (which is what I'd prefer), with the instructions from the PHP 4.0 install file and various books with similar instructions, but when I tried to create a phptest.php file with the phpinfo function and some other php code, the browsers would show the html code but not the php code. I verified that mod_so.c was enabled. I used "--enable-track-vars" in the configuration. Any assistance would be greatly appreciated as PHP looks great from what I've read and I'd love to be able to use it soon. Thanks in advance! Lawonna

« previous php.install (#4210) next »