Quote:
|
1) I’m guessing that I can take the entire configure command in the big box at the top of the phpinfo() display and run that (tweaking the ‘-–without-mysql’ of course). True?
|
No. Mysql is compiled fine. What all the sources you found in the internat take not in account that today all php installations are compiled modular, so --without-mysql just means that mysql is loaded as module and not compiled in.
Quote:
|
2) What directory do I run this from? There’s a pile of ‘.h’ files in ‘/usr/include/php/main’ - do I go there? Or where?
|
Do not do this if you dont want to mess up your installation!
Quote:
|
3) Do I need anything else?
|
Yes
1) Make sure that you have the php mysql module installed:
yum install php-mysql
If the command says that it is already installed, you must check if the module is loaded. Have a look at the php.ini file, the file is most likely in /etc/php5/apache2/ php.ini or a similar location in the /etc directory.
There must be a line in the file like:
extension=mysql.so
if you do not have this line, add it at the end of the file and restart your apache webserver.