Edit report at https://bugs.php.net/bug.php?id=12415&edit=1
ID: 12415 Comment by: john dot andrea at satlantic dot com Reported by: akoski at iobox dot com Summary: changing mysql.default_socket in /etc/php.ini doesn't work Status: Bogus Type: Bug Package: MySQL related Operating System: Linux Mandrake 8.0 PHP Version: 4.0.6 Block user comment: N Private report: N New Comment: Also trouble in 5.3.8 I say its a documentation error as there is no description or example (see: http://www.php.net/manual/en/ini.sections.php) of the use of semi-colons. Oddly, the mysql.default_socket was the only setting which needed the semi-colon in order to be recognized. Previous Comments: ------------------------------------------------------------------------ [2001-07-27 23:21:54] sni...@php.net user error. ------------------------------------------------------------------------ [2001-07-27 03:21:45] akoski at iobox dot com Found the problem. There was a missing ; . I thought ;'s are only used for comments... ------------------------------------------------------------------------ [2001-07-27 03:07:55] cy...@php.net are you sure PHP actually reads that php.ini? you can see the location where PHP looks for the file in the output of phpinfo(). as with all changes in php.ini, you have to restart apache for this to become effective. ------------------------------------------------------------------------ [2001-07-27 02:52:41] akoski at iobox dot com I have tried to change MySQL's socket path to something else than the default. I found that there's a mysql.default_socket in /etc/php.ini. I changed it to point to the socket file, but it doesn't seem to have any effect. PHP produces error message saying that it cannot find mysql.sock, and the path points still to the default location. phpinfo() shows also the default location. There's a workaround: symbolic link to real socket file. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=12415&edit=1