LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-24-2005, 11:52 PM   #1
Kronux
Member
 
Registered: Sep 2004
Distribution: RH9/FreeBSD
Posts: 36

Rep: Reputation: 15
PHP Configuration


RH9
PHP-5.0.3

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?

Quote:
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

Kx:.

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

Rep: Reputation: 57
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.


Håkan
 
Old 02-25-2005, 07:41 AM   #3
Kronux
Member
 
Registered: Sep 2004
Distribution: RH9/FreeBSD
Posts: 36

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

PHP

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-sock=/var/lib/mysql.sock --with-mysql --with-curl
 
Old 02-25-2005, 05:28 PM   #4
Kronux
Member
 
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?
 
  


Reply


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 02:49 AM
PHP configuration problem mithras Linux - Newbie 2 09-14-2003 02:03 AM
PHP/MYSQL Configuration drweb Linux - Newbie 3 06-29-2003 02:11 PM
PHP Configuration [Need urgent help] drweb Linux - Newbie 5 06-24-2003 01: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 07:50 AM


All times are GMT -5. The time now is 12:45 PM.

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