Problems Installing PHP with IIS
Posted: Sat Feb 03, 2007 2:38 pm
Very much a newbie with all of this but I've followed the installation FAQ's on php.net and am having the following problem. when I try and run the tester program (localhost/phptester.php) I get a dialog box telling me "You are trying to download the file phptester.php, do you want to save...blah blah blah)
Installation steps carried out so far:
1) Downloaded "php-5.2.0-Win32.zip" from php.net site
2) Created a C:\php directory and extracted all files from zip archive into it
3) As per the installation notes on the php set, I've added the location of the "php5ts.dll" to the end of the PATH variable in CONTROL PANEL-->SYSTEM-->ADVANCED-->ENVIRONMENT VARIABLES-->, so now it reads "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; C:\php"
4) I've copied the pnp.ini-recommded file to the C:\WINNT folder and renamed it php.ini
5) Within the php.ini file I've set doc_root = c:\inetpub\wwwroot // for IIS/PWS
6) via Control Panel-->Administrative Tools-->Internet Service Manager I've:
gone into the Properties of "Default Web Site",
selected the "Home Directory" tab,
set Executable permissions to "Scripts Only",
Clicked "Configuration", and Added in .php as an executable and browsed for the php-cgi.exe in the C:\php directory
If you could give me a hint on something I've missed here I'd be really grateful.
Installation steps carried out so far:
1) Downloaded "php-5.2.0-Win32.zip" from php.net site
2) Created a C:\php directory and extracted all files from zip archive into it
3) As per the installation notes on the php set, I've added the location of the "php5ts.dll" to the end of the PATH variable in CONTROL PANEL-->SYSTEM-->ADVANCED-->ENVIRONMENT VARIABLES-->, so now it reads "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; C:\php"
4) I've copied the pnp.ini-recommded file to the C:\WINNT folder and renamed it php.ini
5) Within the php.ini file I've set doc_root = c:\inetpub\wwwroot // for IIS/PWS
6) via Control Panel-->Administrative Tools-->Internet Service Manager I've:
gone into the Properties of "Default Web Site",
selected the "Home Directory" tab,
set Executable permissions to "Scripts Only",
Clicked "Configuration", and Added in .php as an executable and browsed for the php-cgi.exe in the C:\php directory
If you could give me a hint on something I've missed here I'd be really grateful.