Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3977216
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:53:50+00:00 2026-05-20T04:53:50+00:00

I have configured PHP to run under FastCgi on IIS7 on Windows Server 2008

  • 0

I have configured PHP to run under FastCgi on IIS7 on Windows Server 2008 under Forms Authentication/IIS Integrated Pipeline. PHP and even Drupal is working brilliantly for authenticated users. For anonymous requests however, all PHP Posts hang until the PHP Timeout and then return a 500.0 Error. No error appears in the log, and the error returned to screen isn’t too helpful even with verbose logging turned on:

 Internet Information Services 7.5
 Error Summary HTTP Error 500.0 - Internal Server Error C:\Program Files (x86)\PHP\php-cgi.exe - The FastCGI process exceeded configured request timeout Detailed Error Information
 Module        FastCgiModule
 Notification  ExecuteRequestHandler
 Handler       PHP_via_FastCGI Error
 Code          0x80070102 
 Requested URL http://localhost/application/test.php
 Physical Path D:\Websites\application\test.php 
 Logon Method  Anonymous 
 Logon User    Anonymous

All authenticated requests work fine, and the second I change the web.config authentication type from “Forms” to “Windows” or “None” Anonymous PHP Posts work. But this doesn’t solve the problem because then no one is authenticated. ASP.Net and Classic ASP Posts work under the same configuration that PHP anonymous Posts are failing.

Just a few of the things I’ve tried include…

Added and removed the FormsAuthentication Module in the local web.config (though already inherited):

<modules>
    <remove name="FormsAuthentication" />
    <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" preCondition="" />
</modules>

Explicitly Allowed Access (though already inherited):

<authorization>
    <add accessType="Allow" users="*" verbs="GET, POST" />
</authorization>

Tweaked the PHP.ini settings, currently set to:

default_socket_timeout = 60
upload_tmp_dir="C:\Windows\Temp"
session.save_path="C:\Windows\Temp"
log_errors = On
error_log="C:\Windows\temp\php-errors.log"
cgi.force_redirect=0
fastcgi.impersonate=1
cgi.fix_pathinfo=1
fastcgi.logging=0
max_execution_time=30
extension_dir="C:\Program Files (x86)\PHP\ext"
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
max_input_time = 60
memory_limit = 128M
post_max_size = 10M   

Changed the Application Pool Identity from ApplicationPoolIdentity to NetworkService to Administrator accounts. All gave the same behavior.

I have followed the PHP.ini and web.config settings recommended on MSDN (http://msdn.microsoft.com/en-us/magazine/cc135973.aspx) and IIS.Net (http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/).

When I say a simple PHP Post fails, I mean simple:

<form action="test.php" method="post">
   <input type="text" name="testpost" />
   <input type="submit" value="postit" />
</form>
<?php if(isset($_POST['testpost'])) { ?>
   Posted: <?php echo($_POST['testpost']) ?>
<?php } else { ?>
   Waiting for post...
<?php } ?>

The only reference I have found to this problem online is an unanswered question on Experts Exchange (http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Microsoft_IIS/Q_26706716.html).

I am new to PHP and IIS7, so after several weeks tinkering with this on and off, I figured it was finally time to ask to see what simple thing is I must be overlooking.

Anyone have any ideas?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:53:51+00:00Added an answer on May 20, 2026 at 4:53 am

    Did you try to set the application pool to “Classic” managed pipeline mode instead of the integrated?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have configured Service Broker communication between two SQL Server 2008 instances using Windows
I am trying to run web application scripted in PHP on windows server 2008.
I am new to Windows IIS and I need to run a php/mysql application
I got windows server 2008 r2 standard virtual server with godaddy. I have magento
I don't know how php.ini was configured since I don't have access to it.
I have a CentOS 6 server set up with git, gitosis, nginx, and php-fpm.
I have a hook configured to run after the final rendered page has been
I have my 1and1 hosted web site. I've got server-side php I need to
I am developing a php MVC framework from scratch and have run into an
I have configured my server to send mail by setting sendmail_path = /usr/sbin/sendmail in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.