Apache + PHP installation error: The specified module could not be found.\r\n in Unknown on line 0

Common Apache error: “PHP Warning:  PHP Startup: Unable to load dynamic library ‘C:\\php5\\ext\\php_pdo_mysql” in the Apache log file (C:\Program Files\Apache Group\Apache2\logs\error.log).

I just installed Apache and Tomcat servers on my new laptop in order to run php and java at the same time; however I ran into an issue with MySQL database connection when I execute a php page.  There’re a few things that you can try to make your server work properly.

First: check php.ini file to make sure that you have extension_dir = “C:\php5\ext”.

Second: go to php directory, copy the libmysql.dll file and paste it to Apache bin directory. Remember not to remove it from php directory. Then restart your server to take effect.