php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11674 can#t connect on socket
Submitted: 2001-06-25 14:33 UTC Modified: 2001-06-26 08:53 UTC
From: lopez at pepe-lopez dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: FreeBSD 4.2
Private report: No CVE-ID: None
 [2001-06-25 14:33 UTC] lopez at pepe-lopez dot com
OK, I compile 4.0.6 (runs as CGI), and copy it to my cgi-bin (where 4.0.5 is/was located (running)).
Then, PHP can't connect to mysql.sock in /tmp/var

- in 4.0.5 the default *SEEMS* /tmp, however, in 4.0.5 the default works, in 4.0.6 NOT. 

When I set up the php.ini (.ini-dist or optimized, it's the same thing!) with mysql.default.socket = /tmp/mysql.sock

the same error (warning) is displaying, but this time with
mysql.sock '-1'.

OK, I delete the php.ini, and 4.0.5 works without any probs, when I copy 4.0.6, -> can't connect to mysql.sock /tmp/var

so...?


regards,
Lopez

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-26 08:53 UTC] sniper@php.net
The default is still /tmp/mysql.sock.
But if you have mysql.sock somewhere else in your
system, it will be detected instead.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC