Re: semi-newbie | php, mysql & RH Enterprise
| From: | Jason Wong | Date: | Sat, 01 Jan 2005 15:52:01 +0000 |
| Subject: | Re: semi-newbie | php, mysql & RH Enterprise | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37939@lists.php.net to get a copy of this message | ||
On Saturday 01 January 2005 23:26, Evan Cooch wrote:
> OK, so I do a bit of reading, and see that maybe what I should do is
> explicitly tell PHP where mysql is, during compilation. On this machine,
> whereis mysql yields
>
> mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql
> /usr/share/man/man1/mysql.1.gz
>
> OK, so the mysql binary is in /usr/bin, and the library files are in
> /usr/lib. So, I try a recompile of PHP, using
>
> ./configure --with-apxs2=/wwwroot/bin/apxs --with-mysql=/usr/lib/mysql
>
> But, this bombs during configure - I get the following error message:
>
> configure: error: Cannot find MySQL header files under /usr/lib/mysql
>
> OK, so I try again, this time using --with-mysql=/usr/bin/mysql - no luck.
> Same message.
You need to install the mysql-devel package.
> So, how do I either (i) compile PHP (or tweak php.ini) to tell it to look
> in /var/lib/mysql for the mysql.soc file, or (2) tell mySQL to put the
> mysql.sock file somewhere else (like, presumably, /tmp, so PHP can find
> it)?
Did you actually look in your php.ini? Because there is an entry there just
for this purpose.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
I'm all for computer dating, but I wouldn't want one to marry my sister.
*/