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 ?
> 
> 


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to