Women in Technology

Hear us Roar



Article:
  Apache Web-Serving With Mac OS X, Part 5
Subject:   test.php does not work
Date:   2004-01-04 13:32:46
From:   anonymous2
Response to: test.php does not work

I just had the same problem when installing phpmyadmin.


I'm using OSX-Panther 10.3.2,
fink installed mysql & entropy.ch php package.


I'm not sure where this happens (guessing the fink build of mysql) ..


but, in any case, php is using the default path to the mysql
socket to connect, which is for us /Private/tmp/mysql.sock


I believe, but my memory is fuzzy, that in 10.2 there was
a /Private.


now it is /private.


If you look in your php.ini file and change (or add?)


the line mysql.default_socket = /private/tmp/mysql.sock
(or wherever mysql is writing a socket on your host machine)
and restart apache / php , it should work.