Forum Overview :: American McGee's Honda Civic
 
OpenBSD and MySQL by creativepig 02/27/2003, 6:03pm PST
I'll start with a preemptive Fuck You (nt) to anyone that pulls a Use Postgres (nt), but if I can't get this to work properly, I'll probably give that a shot, anyway.

I'm having difficulty getting MySQL to work with a chrooted Apache. I think what's happening is that PHP can't see mysql.sock because it's not inside the chroot and is giving me the "Can't connect, /var/run, etc." So what are my options? Obviously, the first thing I try is changing the location of mysql.sock through /etc/my.cnf. This half-worked--the socket wasn't in /var/run/mysql anymore, but it sure as hell didn't end up where I wanted to put it. Next, I tried a union mount, which should have worked, since that's how I'm getting my content into the chroot, but the socket is magical and doesn't show up through the union.

Anybody have any other ideas? I don't really feel like poking the hole in my firewall with Apache running -u or whatever.


cp, who hasn't had a date since he learned Unix, but still sucks at it, anyway
NEXT REPLY QUOTE
 
OpenBSD and MySQL by creativepig 02/27/2003, 6:03pm PST NEW
    Nice trouble report. man truss, etc. -nt- by Ray, of Light 02/27/2003, 7:44pm PST NEW
    Use a tcp socket bound to localhost instead? -nt- NT by Entropy Stew 02/27/2003, 8:21pm PST NEW
 
powered by pointy