Re: [PHP3] PHP4 DSO with Mysql
| From: | Estelle Martin | Date: | Thu, 25 May 2000 06:54:19 +0000 |
| Subject: | Re: [PHP3] PHP4 DSO with Mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-512@lists.php.net to get a copy of this message | ||
Hi Thomas,
I did have the same problem with PHP3, Apache and mysql.
I solved it putting
setenv LD_LIBRARY_PATH /usr/local/mysql/lib/mysql:/usr/local/lib
before starting Apache as well.
The problem is often that the library path is not known, or
that the "make" of php does not link to it, so Apache will
not find it.
If the problem comes from the "making" of php, use:
#setenv CPPFLAGS -I/usr/local/apache/include/xml/
#./configure --with-mysql=/usr/local/mysql
--with-config-file-path=/usr/local/apache/conf
--with-apxs=/usr/local/apache/bin/apxs --enable-track-vars
#setenv LDFLAGS "-L/usr/local/mysql/lib/mysql/ -lmysqlclient"
#make
#make install
as was pointed out by Tuupola, in a post on 10.05.2000.
Hope this helps... Good luck !
Estelle
Thomas Deliduka wrote:
>
> I get much more help from this list than the install list. It seems that
> there is a slew of people just posting problems but nobody offering any
> solutions. Can anyone help me with this?
>
> I don't get this one... Went through these steps and I get the error below
> when starting apache:
>
> --
> ./configure --quiet --with-apxs=/usr/local/apache/bin/apxs --with-ftp
> --with-mysql=/usr/local/mysql --enable-track-vars --enable-calendar
> make
> make install
>
> Modify httpd with the necessary items.
> Run apache.
> Get error: Cannot load /usr/local/apache/libexec/libphp4.so into server:
> libmysqlclient.so.6: cannot open shared object file: No such file or
> directory
> ---
>
> Now I thought perhaps I didn't have apache compiled with Mysql support or
> something. I looked at the apache configure that I did and I don't have any
> mention of mysql.
>
> The instructions for PHP don't mention anything about this.
>
> I did some further research... I did a find on the file, I found it in:
>
> ./usr/local/mysql/lib/mysql/libmysqlclient.so.6
>
> So, it's on the server, is it suppose to be somewhere else than here?
> --
>
> Thomas Deliduka
> IT Manager
> --------------------
> New Eve Media
> 5629 Westlake Drive
> Galloway, OH 43119-8498
> Phone: 614-870-3098
> Fax: 614-870-7486
> Mobile: 614-537-6445
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
---------------------------------------------------------------------
___/ __ / ___/ / Estelle Martin
/ / / / / Chaire de Statistique Appliquee
___/ ___/ ___/ / DMA-EPFL
/ / / / CH-1015 Lausanne
____/ _/ _/ ____/ Switzerland
ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE mailto:estelle.martin@epfl.ch
phone: 41-21-693.27.85
Swiss Federal Institute of Technology fax: 41-21-693.42.50
http://statwww.epfl.ch/morgenthaler/Nelle.shtml
---------------------------------------------------------------------