Problems with installing PHP "Unable to load MySQL extension" Workaround _php Tutorial

Source: Internet
Author: User
"Unable to load MySQL extension, check PHP configuration" always appears when accessing phpMyAdmin. View reason is that "php_mysql.dll" cannot be loaded as.
For PHP 4.x users, follow the user manual instructions in the discuz!4.0 program to do the general. This problem occurs at most users of PHP 5.x.
I have this problem in setting up the environment, want to check the solution from this forum, a check found that there are many people who have encountered this problem.
Because it is just beginning to do PHP, so the various programs are downloaded now the latest, for the veteran may use a bit earlier version of the habit, and do not like to use the latest, so it is difficult to find a solution to the forum, we left the novice to find the answer.

Boil to two points to solve the problem, to share with you. Not much gossip, the following is my final solution, I hope the same encounter with this problem of friends to help.

I'm using the PHP version: Php-5.1.1-win32

Configure the environment according to the user's manual in the downloaded discuz!4.0.
The red part is a change relative to the manual description:
1. For php.ini files
Go to C:\PHP, copy Php.ini-dist to C:\WINNT (C:\Windows under Windows xp/2003), change to php.ini, then open with Notepad and search Extension_di using Notepad's find function r = "./" and refer its path to the extensions directory in your PHP directory, for example: Extension_dir = "C:\PHP\ext", then search register_globals = off, change off to on;
to look for; Extension=php_mysql.dll, remove the preceding quotation marks ";".
2, the Manual on the configuration of IIS instructions, the "Php\sapi\php4isapi.dll" in the PHP directory to change "Php5isapi.dll"
3, Important: In accordance with the manual instructions to copy the PHP directory, ext (Manual for php4x is extension, here should be ext) directory DLL files to system32 based on, Then copy the Libmysql.dll file under PHP directory to system32.

Restart IIS:
At the command prompt, execute the command individually:
net stop w3svc
net stop IISAdmin
net start w3svc

Look, it's solved.

http://www.bkjia.com/PHPjc/318388.html www.bkjia.com true http://www.bkjia.com/PHPjc/318388.html techarticle "Unable to load MySQL extension, check php configuration" always appears when accessing phpMyAdmin. View reason is that "php_mysql.dll" cannot be loaded as. For php4.x users, follow the instructions in the discuz!4.0 program ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.