On Microsoft IIS5, I right click on "Websites" and select New -> Web Site and it creates a green globe with a hand underneath it under the "web Sites" root folder in IIS. I set it up and point it to a directory on C:. I also assigned the port number to 8181. I run http://localhost:8181/test.html and it works. I run http://localhost:8181/test.php and it gives me the page cannot be found.

I've also taken steps to download the php5isapi.dll, added it to the ISAPI Filters tab of the properties section of the new "Web Site". Then enabled it in the "Web Service Extension" folder and enabled it only to be greeted with an error message in the Application folder of the Events Log saying

I should also mention I installed php on this windows 2003 server machine using the 5.1 msi file. the installer seems to have already created the php.ini mods I need including the mysql.dll extension enable.

Could not load all ISAPI filterse for site/service.  Therefore startup aborted.

Any ideas on this? I'm stumped.

thanks in advance.

link|improve this question

32% accept rate
feedback

3 Answers

Here are a couple of tutorials:

Questions:

  • Can you run PHP manually using the CLI?
  • On what folder did you install PHP?
  • Is there any more information in the website logs?
link|improve this answer
i can run php manually on cli. I can even connect to the mysql database. I just can't get the webpage to show up on the browser. crazy! – phill May 14 '09 at 23:02
i installed php in c:\temp\php – phill May 14 '09 at 23:03
feedback

Quick answer:

Have you checked that PHP.ini is available from the environment path? As far as I remember, PHP.ini must be in a folder that can be seen from anywhere, such as System32

link|improve this answer
feedback

It sounds like you're having an issue with the FastCGI http module not registering the PHP module.

I would recommend you try installing PHP with the Microsoft Web Platform Installer (http://www.microsoft.com/web). The Beta 2 has PHP Support, and I installed it on IIS and it worked with ease.

If you google for links on WebPI and PHP you'll find some cool tutorials.

Additionally, once you get it up and running be sure to use this very helpful page.

info.php

<?
phpinfo()
?>
link|improve this answer
ran the WebPI and php installed nicely on the default website. What sucks is the "new website" doesn't work with php. Still get the page cannot be found. I also tried adding the iuser_<machine> and <machine>-WPG accounts to the security tab of the folder, but that didn't help either. – phill May 15 '09 at 14:12
also, WebPI doesn't install php.exe for the CLI. – phill May 15 '09 at 16:26
You can always extract the php.exe binaries into the Program Files/PHP directory to get the CLI working. – bendewey May 16 '09 at 0:22
Did you get any phpinfo? Also, check the EventLog, and the php.ini should reference a logging file, check that as well. – bendewey May 16 '09 at 0:24
I extracted the php.exe from the zip file download however it says it requires the dll. Am i better off running the msi again even though webPI has already instealled the php-cgi.exe already? i'm assuming it installed this since its the only php executable in the directory. – phill May 18 '09 at 13:46
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.