Link mysql with php on apache
Posted
by
Cristy
on Super User
See other posts from Super User
or by Cristy
Published on 2010-12-29T12:46:02Z
Indexed on
2010/12/29
12:55 UTC
Read the original article
Hit count: 324
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...
© Super User or respective owner