Link mysql with php on apache
- by Cristy
THE STORY:
I've installed Apache 2.2.17 , PHP 5.2.16 , MySQL 5.5.8 . The PHP woks great, the phpinfo() works on the localhost.
THE PROBLEM:
The thing is that in phpinfo() there is no mysql mentionened. I've done the following:
moved php.ini to C:\windows
removed the ";" in front of the mysql extension line ( extension=php_mysql.dll )
copied the libmysql.dll to php folder & windows\system32
checked the extension path in php.ini to be " C:\php\ext"
searched the internet for a solution for about 2 hours...
ADDITIONAL INFO:
In the Apache Enviorment path I have the following:
C:\Program Files
(x86)\PHP\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files
(x86)\QuickTime\QTSystem\;C:\OJI\MinGWStudio\work\mingw\bin;C:\Program
Files (x86)\Microsoft SQL
Server\100\Tools\Binn\;C:\Program
Files\Microsoft SQL
Server\100\Tools\Binn\;C:\Program
Files\Microsoft SQL
Server\100\DTS\Binn\;
I think the Microsoft SQL path should be replaced with the MySQL one, but I don't know where to change that...