Chrooting Apache2 With mod_chroot On Debian Etch - MySQL Troubles

Discussion in 'HOWTO-Related Questions' started by jon, Mar 11, 2008.

  1. jon

    jon HowtoForge Supporter

    I've used the Apache2 chroot howto, and it worked perfectly. However it seems I cannot access the MySQL backend now. I see an error that says "MySQL said: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (40)". When I got that, I made a symlink but it doesn't seem to work. Any help would be great.
     
  2. falko

    falko Super Moderator

    Configure MySQL to use TCP instead of the socket.
     
  3. jon

    jon HowtoForge Supporter

    Just another reason I'm happy to spend $5 a month on this amazing site. Thanks! It worked perfectly.

    On that note, from what I know about mysql and what I've read, you cannot have localhost not connect to the socket, but you have to use 127.0.0.1 instead. Is that still the same? Is there a way I can work around this?
     
  4. falko

    falko Super Moderator

    If you want to use TCP all the time, I'd use 127.0.0.1 instead of localhost.
     

Share This Page