How to activate php_mysql.dll under Apache for PHP5 on Windows

After stunning Syko with accomplishing this, I figured it may help some people here.

  1. Start the Apache monitor (Start > Programs > Apache HTTP Server [version] > Control Apache Server > Monitor Apache Servers).

  2. Stop the Apache server that is currently running. Keep the monitor open.

  3. Go to your Windows folder, look for php.ini, and open it up. Scroll down until you see a list of extensions like this:

**…
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll

**4) Remove the ; in front of extension=php_mysql.dll, and save the file. This is what it should look like now:

**…
;extension=php_mssql.dll
;extension=php_msql.dll
extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll

**
5) Go to your PHP root directory (likely c:\php) and look for libmysql.dll. Copy this file to the Windows/System32 folder.

  1. Do the same for the file **php_mysql.dll **in the folder ext, which is also located in your PHP root folder (likely c:\php\ext\php_mysql.dll).

  2. Bring the Apache monitor back and start the Apache server again. Now, your PHP should be mysql ready :slight_smile: