During the installation of apache2 and PhP5 + MySQL, you may have encountered such a problem in the Apache Error Log:
PHP warning: PhP startup: Unable to load dynamic library 'C:/PhP5/EXT/php_mysql.dll '-????????? /R/N in unknown on line 0
PHP warning: PhP startup: Unable to load dynamic library 'C:/PhP5/EXT/php_mysqli.dll '-????????? /R/N in unknown on line 0
There are many articles on the Internet about the solution to this problem. If you find that the problem is still not solved, try this:
Suppose your apache2 is installed in C:/apache2, and PHP is installed in C:/PhP5:
Solution:
Copy C:/PhP5/libmysql. DLL to C:/apache2/bin
Other configuration items related to Apache and PHP are listed below for your reference:
Httpd. conf
Loadmodule php5_module "C:/PhP5/php5apache2. dll"
Addtype application/X-httpd-PHP. php. PhP4. PhP5
Phpinidir "C:/PhP5"
PHP. ini
Extension = php_mysql.dll
Extension = php_mysqli.dll