Using PHP/MySql with IIS 6

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sheridan
Forum Newbie
Posts: 18
Joined: Sat May 31, 2008 1:50 pm

Using PHP/MySql with IIS 6

Post by Sheridan »

HELP!
I am a refugee from Apache trying to use PHP with IIS. I have PHP installed and running on IIS 6. This is good. Not so good is the fact that phpinfo() does not recognize MySql and I cannot generate error messages.

Anyone know where I can look for help?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Using PHP/MySql with IIS 6

Post by John Cartwright »

I'm not very familiar with IIS6, however I know in PHP5+ mysql is not enabled by default. You will have to open up your php.ini and uncomment the mysql extension. Then restart IIS and mysql should be enabled (assuming the extension exists on your server).

To have error messages show up, you will need to increase the error_reporting in your php.ini. I would always recommend setting it to atleast E_ALL during development.
Post Reply