Re: semi-newbie | php, mysql & RH Enterprise

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
*/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux