Jump to content

Recommended Posts

Posted
Has anyone here successfully installed PHP on IIS before? I've been trying for the past few hours but I keep getting a 404 error when I try to view a PHP page. I've read on some sites that I need to register a PHP isapi filter but each time I do this is just says not loaded.
Posted

I have done it, it can be done! It was a long time ago, and I remember at the time a small problem, but I googled it and was soon up and running.

 

I have a book on php and it had a section on installing php on iis, I'll dig it out at lunch and let you know!

  • Thanks 1
Posted
I think I'm getting somewhere. Now when I try to view a PHP file it says that I don't have permission to view it yet the permissions on the file are correct. The permissions applied to the index.html file are the same as the index.php file but it's complaining. Any ideas?
Posted
only thing i can suggest is you install 2003 server on another box fresh install, then follow the same procedure on that box, if it works we know somthing is really wrong with the config on your server, if it does not then there must be 1 tick box or somthing your missing.
Posted

If you are getting a 404 error it is becouse thePHP file extensions are not enabled in IIS.

 

To enable these open IIS and on the left had tree navigation menu click on Web Extensions, you will see PHP on the right hand side, highlight it and click on the enable button.

 

Thats is although I would suggest a quick reboot.

 

Now simply create a .php file with the following in:

 



// Show all information, defaults to INFO_ALL
phpinfo();

?>

 

No access thefile via your web broswer and you should see a PHP info display.

Posted
I have used PHP on IIS6 so it is definitely possible (as already mentioned). Once you've loaded the PHP extension, try stopping and starting IIS6 services.
  • 2 weeks later...
  • 2 weeks later...
Posted

I can fix this for your if you have RemoteDesktop accessible?

 

I have done this on 3 seperate occasions with different setups, its usually something similar thats not set properly.

 

Send me a PM if you want me to give it a go :)

  • 9 months later...
Posted
[ame=http://www.youtube.com/watch?v=17aAuMVippQ]YouTube - How to Install PHP5 on Windows 2003 with IIS6 Web Server[/ame]
Posted

All i did was install PHP v.5, restarted (just incase), then went to IIS - Web Service Extensions, started/allowed the PHP: hypertext processor, checked the properties - required file location, making sure it had C:\location php waht installed to\php-cgi.exe and it was allowed, restarted the server to make doubley sure i had not missed a service and it worked.

 

hope that helps

Posted

Thanks.

I've allowed PHP in IIS. WHat should be the required fields in the properties?

I currently have php5ts.dll pointing to C:/Program Files

What do you mean by the php-cgi.exe?

Posted

If it helps anyone: I have vague memories of having a horrendous time getting PHP (5.2.5) working on as IIS6 machine. This was installing ISAPI, not CGI, by the way.

 

If memory serves I'd followed all the guides to the letter and kept getting 404 errors, but eventually found one that mentioned quote marks:

 

Open IIS Manager. Right click on the Web Site and select Properties. From the Home Directory tab click the Configuration button. Click Add to add an Application Extension. Enter "c:\PROGRAM FILES\PHP\PHP5ISAPI.DLL" (wrapped in double quotes) as Executable and PHP as Extension. Leave the rest as default and click Ok

 

And that did the trick.

Posted
If it helps anyone: I have vague memories of having a horrendous time getting PHP (5.2.5) working on as IIS6 machine. This was installing ISAPI, not CGI, by the way.

 

If memory serves I'd followed all the guides to the letter and kept getting 404 errors, but eventually found one that mentioned quote marks:

 

Open IIS Manager. Right click on the Web Site and select Properties. From the Home Directory tab click the Configuration button. Click Add to add an Application Extension. Enter "c:\PROGRAM FILES\PHP\PHP5ISAPI.DLL" (wrapped in double quotes) as Executable and PHP as Extension. Leave the rest as default and click Ok

 

And that did the trick.

 

Thanks but when I try with the quotes it says that specific characters are not allowed.

When installing PHP, which web server do I need to select?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...