troubleshooting Question

Windows 2003 Server IIS 6.0 PHP Asapi Module

Avatar of justincouto
justincouto asked on
10 Comments1 Solution2452 ViewsLast Modified:
I am about to loose my mind!  I have been trying to get PHP working as a module on IIS for about a week now.  Originally I was trying to get PHP5 RC1 working with IIS on Windows 2003 Server.  After following guide after guide, I kept running into the same problem.  I do everthing as listed in and answer to a similar question on this site:



I got the latest stable version of PHP running on Windows 2003 IIS6.0, without any problems.

* You first need to add a 'Web Service Extension' in through IIS manager, I called the extension PHP, and added the path to php4isapi.dll (don't forget to set the status to allowed)

* Then go to the properties of the website where you want to run PHP, select the 'Home Directory' tab, and click on the 'Configuration' button. Click 'Add', browse to the 'php4isapi.dll' file (put the path between quotes), type '.php' as the extension, and deselect 'Verify that the file exists'.

* copy the 'php4ts.dll' file from the php directory to the windows\system32 directory, and copy the php.ini-recommended file to the windows directory, and rename it to php.ini

*do a iisreset, and your php should work fine (without putting IIS in isolation mode)


Enrico Klein
Vertis BV


After pulling my hair out for a while, I decided to try it with PHP4 instead of the new 5 version.  After doing that I got the same problems as I has having with 5.  Here is my issue:

After folowing thew above instructions to a TEE, this is what happens.  I add my website and create a basic PHP script called index.php



When I try to access my script via my web browser, I get prompted to enter a username and password.  If I enter a machine username and password (ex.  Administrator, Password) it simply reprompts me to enter the password again.  It saves all the password infomration in the dialog box.  If I re-enter the username and password it continues to reprompt.  After three times it takes me to the no permissions page.  I don't think it is a permissions issue.  When I creat a static HTML file with the same permissions in the same directory it works fine.  If anyone could tell me what I am doing wrong I would really appreciate it.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros