Loading ...
Sorry, an error occurred while loading the content.

13128RE: [TTLUG] php mysql.sock problems

Expand Messages
  • Christian Anton
    Jun 1, 2004
      Hash: SHA1


      I had this problem a while aback. Check mysql.conf for the location of the socket file.
      Then I believe you can edit conf.php to look there. Also, check your file permissions, make 'em more open if you need to, and double check who you're logging into the db as in your PHP script. If all else fails, bypass sockets and use ports; try connecting through 'localhost'.

      Oh and as a security tip, unless other machines are accessing your db, setup your fw to block external traffic to MySQL port.

      As for the problems RHS had installing; dude, when did you do that install? I remember my first APACHE/PHP3 install had some funky stuff, but not like what you described. It's easy now, a vanilla install of Apache can work eith a PHP install by adding two lines in your apache conf and restarting.

      Christian Anton

      -----BEGIN PGP SIGNATURE-----
      Version: PGP 8.0.2

      -----END PGP SIGNATURE-----
    • Show all 3 messages in this topic