[peruser] connecting mysql

Samit janasamit at wlink.com.np
Fri Feb 1 13:18:29 MST 2008


Hi,

What could be a better and secure way to provide chrooted virtual sites
to allow mysql connect from php?

I got error "Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (40)"

Creating symlinks of /tmp/mysql.sock to user's chrooted virtual
directory  doesn't work.

Creating hardlink of /tmp/mysql.sock to user's chrooted virtual
directory works.
Mounting  /tmp directory to all chrooted virtual directory works.

Any other tips will be appreciated.

Regards,
Samit








More information about the Peruser mailing list