Red Hat Bugzilla – Bug 60749
path to mysql.sock not set with php-4.0.6-12 errata upadate
Last modified: 2007-04-18 12:40:45 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901
Description of problem:
The most recent update to php, php-4.0.6-12, fails to set the proper path in
php.ini in /var/lib/mysql/mysql.sock and the default is used, /tmp/mysql.sock...
which is wrong and you get errors and such.
the rpms installed are:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.update using the various php-4.0.6-12 rpms
2.try to access your mysql database's through a php interface
Actual Results: 3.you get errors "/var/mysql.sock could not be found" etc.
Expected Results: pages load as they did moments before you updated the php
open php.ini and add:
and restart apache:
this only took me a short time to fix, but i know it would have made me pull my
hair out a few years back... hope it helps someone...
*** This bug has been marked as a duplicate of 60515 ***