# How to activate php\_mysql.dll under Apache for PHP5 on Windows

**URL:** https://forum.kirupa.com/t/how-to-activate-php-mysql-dll-under-apache-for-php5-on-windows/121057
**Category:** Uncategorized
**Created:** [August 30, 2004, 3:55pm UTC](https://forum.kirupa.com/t/how-to-activate-php-mysql-dll-under-apache-for-php5-on-windows/121057 "2004-08-30T15:55:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)
#### Post date: [August 30, 2004, 3:55pm UTC](https://forum.kirupa.com/t/how-to-activate-php-mysql-dll-under-apache-for-php5-on-windows/121057/1 "2004-08-30T15:55:25Z")

</div>

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 🙂
