Getting PHP, MySQL, IIS, and Vista to Play Nicely

by shuff 7/17/2007 4:36:00 AM
I recently had the need to get PHP (which I've never used prior to this) and MySQL up and running on IIS on my home machine which is running Vista Ultimate Edition. I was able to get PHP 5.2.3 up and running by follwing the directions here on BillS' IIS Blog. I was able to install MySQL which is a bit tricky to find on the MySQL website if you are looking for the free version here is a link to it.

I was able to install MySQL just by using the Install that came with it, no tricks or problems. Then I installed SQL Manager 2007 Lite For MySQL to be able to manage the databases. I was able to install and connect without any problems.

I then needed to get PHP and MySQL working together. I went into the PHP.INI file in c:\Windows and uncommeted the line for the driver php_mysql.dll and updated the line extension_dir to set it to "c:\php\ext". I then created a simple PHP page calling PHP_Info and saw that it was loading the correct INI file in C:\Windows, but was not seeing my updates. It was not looking for the extensions in the correct directory or seeing that I was trying to load the extension php_mysql.dll.

After much distress I found the trick. I had to recycle the DefaultAppPool in IIS to get it to read the PHP.INI file again. Restarting the server dind't even seem to do the trick. So if you have this problem try -> start - run - inetmgr - "Application Pools" - DefaultAppPool - Recycle.

I hope this helps soemone out there...

Tags:

PHP | MySql | Vista

Comments

6/26/2008 9:05:23 PM

web

Nice post. But will you please tell me which version of vista you used to configure PHP.

web United States

6/27/2008 5:55:12 PM

shuff

Vista Ultimate.

shuff United States

8/20/2008 4:56:51 AM

IndianDude

Tried this, but does not work... Is there any other way to get around this problem?

IndianDude United States

2/24/2009 1:15:00 PM

Tukang Nggame

very informative post, thank you Smile

Tukang Nggame United States

6/27/2009 3:14:22 PM

tukang nggame

thank you for your information.

tukang nggame Indonesia

7/6/2009 12:20:40 AM

club penguin

It does not work... Is there any other way to get around this problem?

club penguin United States

7/12/2009 8:32:52 AM

Saul

Good info. Its useful...

Saul United States

7/14/2009 3:59:20 AM

Charles Hubert

I am quite interesting in this topic hope you will elaborate more on it in future posts.

Charles Hubert United States

7/18/2009 12:36:02 AM

AJ

I have been meaning to write something like this on one of my blogs and this has given me an idea. Cheers.

AJ New Zealand

7/19/2009 8:43:51 AM

Luxury Hotels of the World

This is nice blog

Luxury Hotels of the World

7/19/2009 11:30:27 AM

запознанства

10x for the code Smile Cheers!

запознанства

7/19/2009 11:30:31 AM

запознанства

Thank you, for the source Smile Cheers!

запознанства

7/19/2009 11:54:33 AM

запознанства

Thank you, for this code Smile Cheers!

запознанства

Comments are closed

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Steve Huff
A developer in the Greater Cincinnati/Northern Kentucky area.

E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Sign in