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

RE: [TTLUG] php mysql.sock problems

Expand Messages
  • Christian Anton
    ... Hash: SHA1 Vidya, 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
    Message 1 of 3 , Jun 1, 2004
    • 0 Attachment
      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      Vidya,

      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.

      Cheers,
      Christian Anton


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

      iQA/AwUBQLyCHyikRzf61a/AEQL7YQCfaa/2x7LI/ldJHwdFknmfEtVaZxIAoPD8
      Uola8XBPY/nhu9EEZceVFPrV
      =xlks
      -----END PGP SIGNATURE-----
    Your message has been successfully submitted and would be delivered to recipients shortly.