Bug 60739

Summary: mysql, apache and php "mysql.sock" compatability link needed
Product: [Retired] Red Hat Linux Reporter: R P Herrold <herrold>
Component: mysqlAssignee: Patrick Macdonald <patrickm>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: copeland, teg
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-06 07:01:58 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 R P Herrold 2002-03-05 20:18:49 UTC
RH 7.2 after 2/2002 updates

[root@landlocked etc]# rpm -qf my.cnf
mysql-3.23.41-1

which includes the definition of the socket location:

[root@landlocked etc]# cat my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

----------

fails with a restart of apache ( apache-1.3.22-2 ) and php ( php-4.0.6-12 ) -- [had a overflow exploit
 ]
-----------

Proposed action -- test for, and as needed add, in the post-isntall script for mysql:

   ln -s var/lib/mysql/mysql.sock  /tmp

(possibly consider adding to the apache and php packages as well)

and restart mysqld, and apache

mysql seems to be the proper package for this fix, because its conf file references /var/lib/mysql/mysql.sock

Comment 1 Trond Eivind Glomsrxd 2002-03-05 22:28:31 UTC
Bug in PHP - a triggerhappy autconf script decides to hardcode the location to
/tmp. This is new. Reassigning so the PHP owner can mark it as a dupe :)

Comment 2 R P Herrold 2002-03-06 06:50:15 UTC
Is this wise to move this here?  I had consciously placed it at mysql, for the
my.cnf pointer to this file would be a normal diagnostic router for a puzzled
sysadmin to check owning packagefor.

That sysadmin would then (hopefully) query the owning package (mysql) and find
(even if closed WONT) the answer which they needed.

I have no problem with a WONT and leaving this at mysql -- I _do_ have a problem
with it getting lost in the clutter at php as a DUPE -- 

Since you have transferred it with an intention that it be closed as DUPE, this
implicitly says that you WONT as to the suggested fix.

I'll re-position and close WONT



Comment 3 Phil Copeland 2002-03-06 07:01:54 UTC
Tsk tsk,...
check before you leap...

Comment 4 Phil Copeland 2002-03-06 07:03:24 UTC
Note that the problem lies in php's configure check.

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