Re: Bug #13918 Updated: PHP can't find mysql.sock

From: Date: Sun, 04 Nov 2001 03:44:39 +0000
Subject: Re: Bug #13918 Updated: PHP can't find mysql.sock
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-69600@lists.php.net to get a copy of this message
Jani Taskinen wrote:
FYI: php.ini has this directive to set mysql.sock path: mysql.default_socket=/Private/tmp/mysql.sock ie. you don't set it in configure but in php.ini. And the fix committed now only affects the builtin mysql libs. If you're using external libs, they should know about the location. --Jani
I think I've read similar mail about pgsql. (I thought it was feature request, but I couldn't find it...) The user is saying pqsql's socket file is defualt to /tmp, but there is no way to set socket directory to other places. It's also configurable using environment PGHOST enviroment variable. == from pgsql manual == PGHOST sets the default server name. If this begins with a slash, it specifies Unix-domain communication rather than TCP/IP communication; the value is the name of the directory in which the socket file is stored (default "/tmp"). ======================= Environmnet variables can affect pgsql module behavior. It would be nice if PHP Manual has description about it. -- Yasuo Ohgaki
On 3 Nov 2001 john@ml-sss.demon.co.uk wrote:
ID: 13918 User updated by: john@ml-sss.demon.co.uk Reported By: john@ml-sss.demon.co.uk Status: Closed Bug Type: Feature/Change Request Operating System: OS-X PHP Version: 4.0.6 New Comment: Hi, I agree - OS-X users can't use it otherwise as there's no means of manually setting that directory within configure that I could see. I'd think it would save you a whole load of hassle to offload that sort of simple change as early as possible. Regards, John Previous Comments: ------------------------------------------------------------------------ [2001-11-03 15:32:35] sander@php.net Why not in 4.1.0? You can consider this a bug: PHP doesn't work well without this fix. Although it's not a bug in PHP, it is a bug in the configure-script, which is a part of the PHP-distro. ------------------------------------------------------------------------ [2001-11-03 15:27:09] derick@php.net Fixed in CVS. Will be in 4.2.0. Derick ------------------------------------------------------------------------ [2001-11-03 15:19:00] cnewbill@php.net ehh so where's the bug? -Feature Request ------------------------------------------------------------------------ [2001-11-03 12:56:01] john@ml-sss.demon.co.uk Hi, OS-X stores this in /Private/tmp/mysql.sock - the configure script just needs to search that dir too. Any php script comes up with "can't find /tmp/mysql.sock" (unsurprisingly). I recompiled and reinstalled with that added in and it works fine now. Thanks, John ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13918&edit=1


« previous php.dev (#69600) next »