Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2005, 12:52 AM   #1
Registered: Sep 2004
Distribution: RH9/FreeBSD
Posts: 36

Rep: Reputation: 15
PHP Configuration


Problem: /tmp/mysql.sock

Alright the problem I have is some reason PHP cannot see mysql.sock. Mysql.sock does exist under the tmp mount but the locate command doesn't even find it. How can I get PHP to recognize that mysql.sock does exist?

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... /tmp/mysql.sock
checking for MySQL UNIX socket location... /tmp/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.

Thanks in Advance


Last edited by Kronux; 02-25-2005 at 01:09 AM.
Old 02-25-2005, 01:32 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
That's not the problem (it finds the socket).
The problem is that you are using something like --with-mysql=yes instead of --with-mysql=/usr so go back and check what mysql options you pass to the configure script.

Old 02-25-2005, 08:41 AM   #3
Registered: Sep 2004
Distribution: RH9/FreeBSD
Posts: 36

Original Poster
Rep: Reputation: 15
./configure --with-openssl --with-isam --prefix=/usr/local/mysql --with-unix-sock-path=/tmp/mysql.sock


./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-sock=/var/lib/mysql.sock --with-mysql --with-curl
Old 02-25-2005, 06:28 PM   #4
Registered: Sep 2004
Distribution: RH9/FreeBSD
Posts: 36

Original Poster
Rep: Reputation: 15
This is so wierd I have the right configuration for mysql, I cannot figure out why mysql, php or my system is not recognizing mysql.sock. I can even see mysql.sock in my /tmp directory. Could it be corrupt and if so, is it possible to just create a new mysql.sock file?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache PHP configuration varunbihani Linux - Newbie 2 01-18-2005 03:49 AM
PHP configuration problem mithras Linux - Newbie 2 09-14-2003 03:03 AM
PHP/MYSQL Configuration drweb Linux - Newbie 3 06-29-2003 03:11 PM
PHP Configuration [Need urgent help] drweb Linux - Newbie 5 06-24-2003 02:57 PM
Updating php 4.3.1 from tar and keeping current php configuration with mandrake 9.1 mrjeep Linux - General 0 04-02-2003 08:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration