Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2001 15:19:08 +0200
From:      Francesco Casadei <fcasadei@inwind.it>
To:        "Kulraj Gurm (bosa.ca Account)" <kulraj@bosa.ca>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: PHP 4.0.6 - libmysqlclient.so.10
Message-ID:  <20010904151908.A2023@goku.kasby>
In-Reply-To: <006601c134a4$367fa360$0ac8a8c0@kimsamy.com>; from kulraj@bosa.ca on Mon, Sep 03, 2001 at 11:14:03AM -0700
References:  <006601c134a4$367fa360$0ac8a8c0@kimsamy.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Mon, Sep 03, 2001 at 11:14:03AM -0700, Kulraj Gurm (bosa.ca Account) wrote:
> The PHP installation instructions include the following linux specific adcice - does anyone know how to apply this in the FreeBSD environment? 
> 
> [snip]
> Note 3!  If you are on Linux and have installed shared libraries, make
> sure the location of these shared libraries are listed in your
> /etc/ld.so.conf file.  For example, if you have:
> 
>   /usr/local/lib/mysql/libmysqlclient.so
> 
> Make sure /etc/ld.so.conf contains:
> 
>   /usr/local/lib/mysql
> 
> Then run ldconfig.
> [/snip]
> 
> 
> I am installing on FreeBSD 4.4RC and get the following error on starting Apache :
> 
> su-2.05# /usr/local/apache/bin/apachectl startssl
> Syntax error on line 20 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/libphp4.so into server: Shared object "libmysqlclient.so.10" not found
> /usr/local/apache/bin/apachectl startssl: httpd could not be started.
> 
> I am pretty sure that the lack of following the instructions and the error are related - therefore need help.
> TIA
> 
> Kulraj Gurm
> 
> end of the original message

If you installed mysql and PHP-4.0.6 using the Ports everything should be ok.
Anyway, if you compiled PHP-4.0.6 with mysql support, then you have to be sure
that it can find the shared object it needs. The mysql port installs a startup
script in /usr/local/etc/rc.d/00mysql-client.sh whose task is loading the
shared libs used by mysql:

#!/bin/sh

case "$1" in
    start)
        /sbin/ldconfig -m /usr/local/lib/mysql
        ;;
    stop)
        ;;
    *)
        echo ""
        echo "Usage: `basename $0` { start | stop }"
        echo ""
        exit 64
        ;;
esac

Note that 00mysql-client.sh is executed before apache.sh, so that at boot time
when the apache web server is started it can find the mysql shared libs.

If you want to do this by hand:

$ ldconfig -m /usr/local/lib/mysql
$ /usr/local/apache/bin/apachectl startssl

	Francesco Casadei
-- 
You can download my public key from http://digilander.iol.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)

Key fingerprint is: 1671 9A23 ACB4 520A E7EE  00B0 7EC3 375F 164E B17B


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7lNTLfsM3XxZOsXsRAgJZAJ404krEmulVPLBbmALcUOrN2ZCcvQCg8nkz
bkOVtf+6UK8T1cI+XKS8QiI=
=iHxW
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010904151908.A2023>