Go Back   Web Server Hosting Forum by BODHost > Support > Windows Dedicated Server
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-06, 10:39
BOD Member
 
Join Date: Jul 2006
Posts: 107
Default How to make PHP work with IIS

This is one of the poblems that we have constantly faced on Windows Serves. Although PHP seems installed, any .php pages fail to work on browser with the error message " Page not found"

The problem is PHP and IIS are not configured to interact and so IIS fails to recognise a .php extension.

Use the following steps in this case and Pray to upparwala that it works (typical funda with Windows!!! )

To allow IIS to know how to handle <a href="http://www.bodhosting.com/" target="_blank" title="CGI" style="color:#000000;text-decoration:none">CGI</a>

scripts with the .php extension, you must add a script mapping.


In Internet Services Manager, select your website
Go to Properties
Go to the Home Directory tab
Click on the Configure button
Select the App Mappings tab
Insert the following: d:\path\to\php\php.exe %s %s
This is the location of the PHP executable. In addition, you can also add a similar script mapping for the .php3 extension if you so desire. You should also mark each entry as being a Script interpreter so that you can mark you directories as having Script permission and not Execute thereby making them safer.

The reason for the two % arguments is to handle multiple parameters on ISINDEX queries, which are an obscure part of the CGI spec.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:09.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.