zero-perfoliate
zero-perfoliate

Author Topic: Can't get PHP to work with IIS 7.0  (Read 199 times)

Offline cecilchampenois

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
Can't get PHP to work with IIS 7.0
« on: July 24, 2010, 12:51:41 AM »
Initially, I installed WampServer, which includes PHP, Apache and something else.

I opened up DreamWeaver CS4 and wrote a simple PHP program with the title of "Hello World". The file was named "HelloWorld.php". When I tried to render it, IIS 7.0 came up. I was expecting Apache, but obviously, IIS 7.0 was dominant. Okay, so I went to the system path and variables and made the changes to show ;C:\wamp\bin\php\php5.3.0 at the end of the path. I then rebooted. No change. Couldn't render the web page using http://localhost/helloworld.php I put a copy of the file also in c:\inetpub\wwwroot\ and tried it there, but it's a no go.

So, I also added the path to PHPRC as follows: ;C:\wamp\bin\php\php5.3.0 <-- same as above.

None of that worked, so I installed Microsoft's Web Development Installer program. Then PHP was put in c:\program files, instead of in c:\wamp\...

What can I do to successfully render a page using PHP with IIS 7.0?

Offline Andrei

  • Administrator
  • PHP Workers
  • *****
  • Posts: 11
  • Karma: +0/-0
Re: Can't get PHP to work with IIS 7.0
« Reply #1 on: July 25, 2010, 02:38:16 AM »
http://php.iis.net/

But maybe it will be better to try getting apache running. If you don't need IIS you can shut id down and then start wamp.