MySQL Forums
Forum List  »  PHP

Re: Cannot load mysql extension. Please check your PHP configuration
Posted by: max chow
Date: November 19, 2008 03:41AM

Hi,

I met this issue with apache_2.2.8&php-5.2.5-win32-installer.msi and solved it as below:

1.Open php.ini and change the two items:
a .Modify extension_dir = "./" to extension_dir = "c:/PHP/ext" or extension_dir = "c:\PHP\ext"; And make sure php_mysql.dll is under c:/PHP/ext. You can get php_mysql.dll and other files from php-5.2.5-Win32.zip.
b. Uncomma ;extension=php_msql.dll and modify it to extension=php_mysql.dll;
3. Copy libmysql.dll to C:\WINDOWS.
4. Restart the Apache server.

Also you should make sure the php.ini is saved at right place. You can use phpinfo() first to check the Configuration File (php.ini) Path. In my machine, the Configuration File (php.ini) Path is C:\WINDOWS so i copied the php.ini to C:\WINDOWS.

-Max



Edited 1 time(s). Last edit at 11/19/2008 03:48AM by max chow.

Options: ReplyQuote


Subject
Written By
Posted
Re: Cannot load mysql extension. Please check your PHP configuration
November 19, 2008 03:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.