A solution to the CGI application misbehaved issue on IIS5 and PHP4
| From: | Kevin Costain | Date: | Tue, 24 Jul 2001 14:37:37 +0000 |
| Subject: | A solution to the CGI application misbehaved issue on IIS5 and PHP4 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8474@lists.php.net to get a copy of this message | ||
My site is setup in the following way:
Administration Site (Stopped)
Default Web Site (Stopped)
domain1.com
domain2.com
domain3.com
domain4.com
domain5.com
- The server runs on FAT32
- Each domain has its own unique IP address
- PHP was installed using the installer (even picked up http://activex.microsoft.com/controls/vb6/MSCOMCTL.cab to ensure the installer would completely finish)
- Each domain's files were kept on another server
After installation, and placing a basic php script in domain1.com (test.php) with the following code:
<html>
<head>
<title>Example</title>
</head>
<body>
<?php echo "Hi, I'm a PHP script!"; ?>
</body>
</html>
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:"
TROUBLESHOOTING
- The first thing I did was start the default web site, place the test.php file in that directory and tried it. This worked.
- I then looked at the domains, the fact that they were on another server using the "When connecting to this resource, the content should come from - A share located on another computer". THis was done for security reasons and eaiser control. I took these files on the local drive and PHP worked!
CONCLUSION
I appears as though PHP is able to support locating files on a different computer and a shared directory. I had initially thought that just using virutal directories was a problem for PHP, but this is not the case.
I hope this proves useful,
Kevin Costain
===============================
KCTS: http://www.kevincostain.com
416-463-6655
===============================