I am not trying to put a db into a chroot here, not linking chroot db to local db...
It was just that, in order for a PHP script running in Apache with chroot, one would need to hard link /var/run/mysql/mysql.sock into /var/www/var/run/mysql/mysql.sock, it has something to do with that PHP needs to talk to MySQL via that Unix socket.
But yea that problem is basically non existent with PostgreSQL, since it just communicates over TCP/IP, even when PHP is running inside Apache and it is chrooted.
__________________
She sells C shells by the seashore.
|