Jump to content

Beginner Installing PHP with IIS - CGI error


Recommended Posts

I'm trying to install PHP with IIS on Windows Server 2003 and my PHP seems to be configured because I can run it at the CMD and I get all the info for phpinfo() but when I add a .php file to my webfolder I get a CGI error saying "The specified CGI application misbehaved by not returning a complete set of HTTP headers".

 

I have set up the web extensions in IIS and I have created a cgi-bin folder that is set to run php files. I'm pretty sure I have set all the permissions to allow the php but I'm not sure if I missed any folders that I'm supposed to change the permissions on.

 

I don't understand why I am getting the error, and am I supposed to be installing something to do with CGI?? Looking at this for 2 days and can't figure anything out from the web???

Link to comment
Share on other sites

Check your application mapping for file extensions in IIS.  Go to website properties, home directory, Configuration button and look there.  Should have php listed as one of the app mappings.  Is it pointed to your command line php executable or php-cgi.exe?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.