Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Building PHP with mysql support on CentOS
- John Smith
March 13, 2006, 1:33 pm
rate this thread
installed MySql and that works okay. I have downloaded the latest version of
php and tried to build it but I keep getting errors about missing function
mysql_connect(). This appears to be caused by not having extensions=mysql in
the php.ini file. However when I build php it does not make a mysql.so file,
where does this come from? I have tried using the configure --with-mysql but
it still does not generate it. I have managed to get it from another
distribution but it does not work correctly due to incorrect versions of
How do you build the mysql.so file?
Re: Building PHP with mysql support on CentOS
Disclaimer: I use Fedora Core 4
With Fedora, the --with-mysql (or --with-mysqli) needs to point to the
mysql_config program (typically in the bin directory of mysql).
So, my directive is: