Re: chrooted apache; php as dso; mysql outside jail

From: Date: Tue, 23 Apr 2002 14:42:06 +0000
Subject: Re: chrooted apache; php as dso; mysql outside jail
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-6725@lists.php.net to get a copy of this message
Calin Damian wrote: Hi, I have the same configuration, apache and php in a chroot, and mysql out of the jail. I use for connetting to the db server simply the host in the /etc/hosts file in the chroot, and this host is the external ip of the machine, and all works fine. Regards Franco > > hi, > > I tried to configure a chrooted web server (apache) with php. > Everything works fine except mysql support builtin in php which fails to > work on localhost mysql server. > > The problem: for local connections "mysql_connect" php's function tries to > locate /var/lib/mysql/mysq.sock socket file. > > I do not want to use mysql's socket file not even for local connections > because of chrooted instalation. > > Is there any option to force php to use tcp/ip connections even when host > is localhost ? > >

« previous php.install (#6725) next »