|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12415 changing mysql.default_socket in /etc/php.ini doesn't work
Submitted: 2001-07-27 02:52 UTC Modified: 2001-07-27 23:21 UTC
From: akoski at iobox dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.6 OS: Linux Mandrake 8.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: akoski at iobox dot com
New email:
PHP Version: OS:


 [2001-07-27 02:52 UTC] 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-27 03:07 UTC]
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 03:21 UTC] akoski at iobox dot com
Found the problem. There was a missing ; .

I thought ;'s are only used for comments...
 [2001-07-27 23:21 UTC]
user error.

 [2011-11-07 18:10 UTC] john dot andrea at satlantic dot com
Also trouble in 5.3.8

I say its a documentation error as there is no description or example (see: 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.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 11:04:08 2023 UTC