PHP does not load correctly in MySQL library, to help you master!!!
Each software version:
apache:2.2.22
php:5.2.17
mysql:5.5.23
Now Apache has been able to parse the. php file correctly, but Phpinfo () has been unable to display the MySQL library correctly.
My php.ini is placed in the PHP installation path, CONFIGURED with:
Extension_dir = "./ext"
Extension=php_mysql.dll
The./ext does have a php_mysql.dll file.
Later I went online to check, said to be in the System32 also put Php_mysql.dll file, and then I also copied a copy of the past, but still not.
Younger brother Novice, used to be used Appserv, the first time oneself Ann, do not fix for half a day, please the Master to help! Not very grateful!!!
------Solution--------------------
Check that the php.ini path inside the phpinfo is not the one you modified. And it's not just php_mysql.dll need to replicate, like there's a libmysql.dll.
It also needs to be copied to the System32. Try it. Win under the configuration environment I also become very strange ...
------Solution--------------------
In the window environment
1. Do not copy any files (green installation)
Because Apache, PHP, and MySQL can run without relying on the registry
2, the module mode of PHP extension_dir should use absolute path (can not drive letter), relative path./ext is for Php.exe.
Otherwise, the php5apache2_2.dll residing in memory will not find the appropriate directory and cannot instruct Php5ts.dll to load the extension library
3, Apache configuration PHP Basic parameters (the replacement path is your true path)
Phpinidir "/amp/php536"
LoadFile "/amp/php536/php5ts.dll"
LoadModule php5_module "/amp/php536/php5apache2_2.dll"
AddType application/x-httpd-php. php
4. Standby Knowledge:
Set
Apache is installed under/amp/apache2
MySQL is installed with/amp/mysql under
Then copy the/amp to the USB stick to make the environment portable.
Execute at startup
Start/b "Apache" "\amp\apache2\bin\httpd.exe"
Start/b "Mysql" "\amp\mysql\bin\mysqld.exe"--defaults-file= "\amp\mysql\my.ini"
Execution when stopped
Tskill httpd
Tskill mysqld
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.