Installing phpMyAdmin on Windows and IIS 6.0
Table of contents for Installing WordPress On IIS From the Ground Up
- Installing MySQL on Windows
- Installing FastCGI on IIS6
- Installing PHP on Windows and IIS
- Installing phpMyAdmin on Windows and IIS 6.0
- Preparing to Install WordPress on Windows and IIS
- Installing WordPress (Single-User)
- Troubleshooting on IIS7
This is the fourth part of the Installing WordPress From the Ground Up series. Previously I discussed installing MySQL, the FastCGI extension, and PHP. This article will show the exact steps for setting up phpMyAdmin on Windows and IIS 6.0.
phpMyAdmin is a web-based tool for managing MySQL database servers. I would go so far as to say it is indispensable. The latest version as of this writing is 3.1.3.
Dependencies
Note that this application requires that the following PHP extensions have been installed:
- MySQL
- GD
- MBString
To check whether these extensions are installed, open the php.ini file in the PHP installation directory (e.g. C:\Program Files\PHP) and make sure that the following lines are uncommented:
extension=php_mysql.dllextension=php_gd2.dllextension=php_mbstring.dll
Download phpMyAdmin
- Download the appropriate package (english.zip for me)
- Extract the files.
- Find the lowest directory containing all the files (
phpMyAdmin-3.1.3-englishfor me) and copy that to a directory likeC:\Inetpub\wwwroot. - Rename the resulting directory as
phpMyAdmin, so the resulting path will beC:\Inetpub\wwwroot\phpMyAdmin.
Configure as an Application in IIS
It is usually preferable to run applications in their own application pool so they don’t affect other applications and so you can manage them independently.
- Launch the Internet Information Services (IIS) Manager.

- Right-click on Application Pools and select New –> Application Pool. Type
phpMyAdminas the name of the application pool and click OK.

- Click on the Web Sites node in the navigation pane and double-click on Default Web Site.

- Right-click on phpMyAdmin in the right pane and select Properties. Click the Create button next to Application name. Set the application pool to the previously-created phpMyAdmin application pool. Click OK and then click OK on the phpMyAdmin Properties dialog box.

Configuring phpMyAdmin
phpMyAdmin stores its settings in a file called config.inc.php. To create the file, we will start with a sample configuration file provided with the phpMyAdmin download.
- Open the file
config.sample.inc.phpinC:\Inetpub\wwwroot\phpMyAdmin. - Find the line that says
$cfg['blowfish_secret']. You must put something between the empty single quotes in order for phpMyAdmin to work. You can put anything here. I’ll put inDPotter.net.phpMyAdmin01.

- Find the lines that say
$cfg['Servers'][$i]['controluser']and$cfg['Servers'][$i]['controlpass']and uncomment them (remove the leading//). Change the password. These are used for accessing advanced features in phpMyAdmin. For this demo I’ll set it the password todpotter.net. Note that it is a good idea to change the username for security purposes sincepmais the default username.

- Find the section
Advanced phpMyAdmin featuresand uncomment all the lines under it.

- Save this file as config.inc.php.
Testing
At this point phpMyAdmin is ready to use. Let’s test it out by navigating to http://localhost/phpmyadmin.
Type root for the username and type the password you specified when installing MySQL. Then click the Go button. At this point you are good to go. You can create databases, update tables, delete rows, inspect data, etc.
Creating the phpMyAdmin SQL Account
Now is the time to create the user you specified in step #3 above for the controluser setting (defaults to pma). Once you’ve logged in to phpMyAdmin, click on the SQL tab and type or paste the following text:
CREATE USER 'pma'@'localhost' IDENTIFIED BY 'your_password';
You’ll want to replace your_password with the password you selected in step #3 above, and if you changed the username, replace pma with what you specified. Then click the Go button. Once you’ve done this, the error message at the bottom of the page will go away.
The next article in the series will cover installing WordPress.
Resources:
- Install PHPMyAdmin on IIS7 and Server 2008 by Dave Lawlor
- PHPMyAdmin Installation by FutureQuest Inc.
- Install and configure phpMyAdmin on IIS @ IIS-Aid.com.




May 15th, 2009 at 12:57 am
i have a proplem:
“Cannot load mysql extension. Please check your PHP configuration. – Documentation”
please help me!
Thanks
June 4th, 2009 at 12:25 am
I followed step-by-step carefully but at the last step: Testing, I got HTTP 403 Forbidden.
Can you help me figure it out, please?
June 13th, 2009 at 3:51 pm
thx perfect
November 28th, 2009 at 12:56 am
php info page works find, but going to http://localhost/phpmyadmin gets me to:
“Cannot load mysql extension. Please check your PHP configuration. – Documentation”
Why do they make things so complicate????
November 28th, 2009 at 11:07 am
@To To and @leo: Check out the article in this series on installing PHP and make sure you have selected the mysql extension. That should get you going.
December 6th, 2009 at 4:10 pm
Hi,
I followed the steps very carefully to install phpmyadmin.
When I try to login to phpmyadmin it errors out with 403 error saying it does not have execute access. I have even tried giving everyone execute access both to default website and the phpMyAdmin application. This is my first time trying php on windows.
Can you please help?
Thanks
x7
February 3rd, 2010 at 9:21 am
Hi,
My machine O/s is window xp and iis version is 5.1, I dont see application pool.
Then how do I go further. let me know please
Thanks,
Rags
February 25th, 2010 at 12:39 am
Absolutely perfect. I’m a total newbie and i suceed! I can’t believe my eyes. Thank you so much
March 16th, 2010 at 4:00 am
says php 5.2+ is required
I like what you got I booked marked ya.
you also for got to mention that index.php should be in documents in iis
take care
Ray
June 17th, 2010 at 3:53 am
Hi, I followed this step by step by but get a ‘page cannot be found’ 404 error. I am already running PHP on this server. (Wordpress running 100)
What have I missed ?
June 17th, 2010 at 3:59 am
got it. I had to add the .php extension under the app configuration. all good now. thanks anyway
February 23rd, 2011 at 3:45 pm
Thanks for this great tutorial. It has saved tons of time. Some things I needed to do to get it to work flawlessly:
1. Received errors: “Directory Listing Denied”. To fix this in ISS Manager, right click on the website you are using and select Properties. In the pop-up click documents tab. Add index.php to the list if it is not already there.
2. a mCrypt error was displayed when accessing phpMyAdmin for the first time. Check out this for a solution: http://forums.iis.net/p/1163769/1929608.aspx
Thanks again for the great tutorial.
February 22nd, 2012 at 10:20 am
Mr. Potter.
Very much obliged.
Your guide is excellent in every way !
Even though I had some mishaps, was able to figure them out, But I definitely would be desperate without your gracious help on this guide.
Thank you