PHP on WinXP with IIS - CGI Error
| From: | Ron Gordon | Date: | Sat, 01 Mar 2003 04:58:54 +0000 |
| Subject: | PHP on WinXP with IIS - CGI Error | ||
| Groups: | php.install php.windows | ||
| Request: | Send a blank email to php-windows+get-18809@lists.php.net to get a copy of this message | ||
I am trying to install PHP on Windows XP with IIS. I downloaded
php-4.3.1-installer.exe and ran it selecting the standard installation
option.
Then I used the Internet Information Services applet in Control Panel to
create a Virtual Directory within my Default Web Site named PHPWeb. The
local path for this Virtual Directory is c:\PHPWeb. I created a very simple
test file containing:
<HTML>
<HEAD>
<TITLE>Test PHP Script</TITLE>
</HEAD>
<BODY>
<?PHP
print ("<CENTER>hello world!</center>\n");
?>
</BODY>
</HTML>
When I try to load this page in MSIE6 (with the latest Service Pack) I get
the following error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
nothing else is shown on the page! Do you have any idea what I've done wrong
or failed to setup or configure?
The installation directory is C:\PHP. In attempting to trouble shoot this
problem, I've copied php4ts.dll into C:\Windows\System32 and I've edited my
php.ini file setting to set
extension_dir = c:\PHP\
I've also tried
extension_dir = c:/php/
Any ideas?
Thanks,
ron@gordonfamily.com