Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 61619

Summary: PHP should have mysql.default_socket configured in php.ini
Product: [Retired] Red Hat Linux Reporter: Oliver Schulze L. <oliver>
Component: phpAssignee: Phil Copeland <copeland>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-22 06:38:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oliver Schulze L. 2002-03-22 06:37:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311

Description of problem:
PHP should have this line:
  mysql.default_socket = /var/lib/mysql/mysql.sock
in the file:
  /etc/php.ini

Beacuse MySQL use by default the file socket /tmp/mysql.sock which one does not
exists

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. connect from a .php file to mysql
2. use localhost as the default host
3. you can't and get an error
	

Actual Results:  You can't connect to MySQL from PHP if you do not configure
/etc/php.ini

Expected Results:  you should be able to connect from PHP to MySQL using the
file socket /var/lib/mysql/mysql.sock

If you have a clean instalation of RedHat 7.2, you should be able to use MySQL
and PHP without the need to edit /etc/php.ini
This was the normal behavior in RH 7.1


Additional info:

Comment 1 Phil Copeland 2002-03-22 07:29:27 UTC

*** This bug has been marked as a duplicate of 60515 ***