I have changed the applictaionhost.config file locking down most sections as this server wiil be used for hosting, but i have doubled checked that the sites attempting to run php have access to all the modules and handlers they require i.e. the FastCGI handler
shown above in the detailed error information.
Any ideas on why this error may be happening, or any simple tips for debugging it?
I am thinking a fresh install may be my only way of fixing this?
*****Update*****
After reading other posts I followed these steps mentioned by ruslany
<div class=ForumPostContentText>
"A possible way to isolate the problem is by running your script from the command line:
C:\php\php-cgi.exe C:\inetpub\wwwroot\phpinfo.php
If you get the same error then you will know that the error has nothing to do with web server or FastCGI module.
Another thing to try is to switch php handler mapping from FastCGI to CGI and see if the error goes away. This way you will know that the error is caused by FastCGI."
So I ran the script from the command line and it returned:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_gd.dll' - The specified module could not be found. in Unknown on line 0
I then switched the php handler from FastCGI to CGI and tried my php page using IE which returned the "Hello World" text followed by the php warning above
So, bar the warning it appears to be working correctly. I dont think this warning is crashing FastCGI, however ill work on fixing it just to make sure.
It looks like PHP extension folder is incorrect in the PHP.ini and because of this PHP cannot load the library. You start PHP from C:\PHP but it search for extensions in C:\Program Files (x86)\PHP\ext\.
Set the extension_dir directive in PHP.ini to 'C:\PHP\ext' to resolve this.issue.
I hit this but then I ran into this page:
http://www.thewebhostinghero.com/tutorials/windows2008-iis7-fastcgi-php.html. Which actually noted that a registry entry should be added for PHP: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = C:\PHP. After I created this, I got the Hello World and PHPInfo
pages to run correctly.
actually the problem in PHP.download php setup and zip file.first install setup and check extension directory and mysqli extension .if it is not work extract the zip copy the all file and paste .use the php.ini file from zip file check extension directory
and uncomment mysqli extension
I spent all day trying to debug this issue and couldn't get it to work until I found your recommendation to run php-cgi from the command line. Thanks!
For everyone else, my specific issue was that the php-cgi.exe was trying to access browscap.ini in the systems folder and didn't have the appropriate permissions. I was trying to install wordpress on a new server. Everything worked perfectly if I set it
up through plesk to run ISAPI, but whenever I tried FastCGI I would get this error.
I've spent more than all day trying to resolve this without any luck. I've been through dozens of different sites and have followed their instructions very carefully without getting this error to go away. I'm still getting the following: HTTP Error 500.0 -
Internal Server Error c:\php\php-cgi.exe - The FastCGI process exited unexpectedly Detailed Error Information Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0x000000ff Requested URL http://localhost:80/index.php
Physical Path C:\inetpub\wwwroot\index.php Logon Method Anonymous Logon User Anonymous I'm about ready to give up.
Hi Jansaman I've had a similar error that has been driving me insane. Basically I installed PHP through windows live installer - still got error. Installed PHP manually through ZIP file - still got error. More or less, I've traced the error back to enabling
extensions with FAST-CGI. As soon as I enable an extension in the PHP.ini file, I get the 500 error. Is this similar to what you're getting? Perhaps its a bug?
c_creaney
3 Posts
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
May 15, 2008 03:13 PM|LINK
Hi,
I am trying to run PHP via FastCGI on a Windows 2008 server. I followed this installation doc http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis7/ and have checked I completed the steps correclty numerous times. However when I try to execute a php page i am presented with the following error:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Detailed Error Information
Module: FastCgiModule
Notification: ExecuteRequestHandler
Handler: PHP via FastCGI
Error Code: 0x000000ff
Requested URL: localhost/test.php
Physical Path: C:\inetpub\wwwroot\test.php
Logon Method: Negotiate
Logon User: Domain\user
I had PHP working correctly without using FastCGI so im fairly sure its not the PHP installation. The only help i have found on this error is here http://blogs.iis.net/rickjames/archive/2007/10/16/fastcgi-debugging-quot-the-fastcgi-process-exited-unexpectedly-quot.aspx and as I am a novice at debugging something like this im not finding it much help.
I have changed the applictaionhost.config file locking down most sections as this server wiil be used for hosting, but i have doubled checked that the sites attempting to run php have access to all the modules and handlers they require i.e. the FastCGI handler shown above in the detailed error information.
Any ideas on why this error may be happening, or any simple tips for debugging it?
I am thinking a fresh install may be my only way of fixing this?
*****Update*****
After reading other posts I followed these steps mentioned by ruslany
<div class=ForumPostContentText>"A possible way to isolate the problem is by running your script from the command line:
C:\php\php-cgi.exe C:\inetpub\wwwroot\phpinfo.php
If you get the same error then you will know that the error has nothing to do with web server or FastCGI module.
Another thing to try is to switch php handler mapping from FastCGI to CGI and see if the error goes away. This way you will know that the error is caused by FastCGI."
So I ran the script from the command line and it returned:
-----------------------------------------------------------------------------------
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_gd.dll' - The specified module could not be found. in Unknown on line 0
Hello World!
----------------------------------------------------------------------------------
I then switched the php handler from FastCGI to CGI and tried my php page using IE which returned the "Hello World" text followed by the php warning above
So, bar the warning it appears to be working correctly. I dont think this warning is crashing FastCGI, however ill work on fixing it just to make sure.
</div>FastCGI process exited unexpectedly PHP IIS7 2008
c_creaney
3 Posts
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
May 15, 2008 04:14 PM|LINK
ok i have finally got this working, i guess these turned out to be famous last words
"I dont think this warning is crashing FastCGI, however ill work on fixing it just to make sure."
The error was causing FastCGI to crash, i commented out extension=php_gd.dll in my php.ini and it appears to be working correcly.
I think ill test this a bit more just to make sure.
I hope this can help anyone else who has the same problem.
Thanks
Alex.W474
26 Posts
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
May 15, 2008 04:27 PM|LINK
Hello,
It looks like PHP extension folder is incorrect in the PHP.ini and because of this PHP cannot load the library. You start PHP from C:\PHP but it search for extensions in C:\Program Files (x86)\PHP\ext\.
Set the extension_dir directive in PHP.ini to 'C:\PHP\ext' to resolve this.issue.
BTW, you can try the installation that is described on the following page: WITSuite.com Knowledge Base / Manual PHP install - it works ok for me.
PHP FastCGI extensions
coreygo
1 Post
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Dec 19, 2008 02:06 AM|LINK
I hit this but then I ran into this page: http://www.thewebhostinghero.com/tutorials/windows2008-iis7-fastcgi-php.html. Which actually noted that a registry entry should be added for PHP: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = C:\PHP. After I created this, I got the Hello World and PHPInfo pages to run correctly.
stuffmasterp...
1 Post
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Jul 18, 2010 10:46 AM|LINK
actually the problem in PHP.download php setup and zip file.first install setup and check extension directory and mysqli extension .if it is not work extract the zip copy the all file and paste .use the php.ini file from zip file check extension directory and uncomment mysqli extension
http://www.technoweblog.com/featured/installing-wordpress-in-iis7
Ohrizon
1 Post
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Jul 21, 2010 02:16 AM|LINK
I spent all day trying to debug this issue and couldn't get it to work until I found your recommendation to run php-cgi from the command line. Thanks!
For everyone else, my specific issue was that the php-cgi.exe was trying to access browscap.ini in the systems folder and didn't have the appropriate permissions. I was trying to install wordpress on a new server. Everything worked perfectly if I set it up through plesk to run ISAPI, but whenever I tried FastCGI I would get this error.
Mike - www.ohrizon.com
FastCGI plesk ISAPI
jansanman
2 Posts
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Oct 14, 2010 10:16 PM|LINK
FEKMGMT
1 Post
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Oct 25, 2010 02:26 AM|LINK
iisbond
2 Posts
Re: C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Jan 05, 2011 07:57 AM|LINK
I am getting same error...is there any lucky...you got any solution?
HCamper
8048 Posts
Re:IIS 7-Forums:-FastCGI-"C:\PHP\php-cgi.exe"-PHP-"The FastCGI process"- "exited- "unexpectedly",...
Jan 05, 2011 08:46 AM|LINK
Hello,
"I am trying to run PHP via FastCGI on a Windows 2008 server.
I followed this installation doc learn IIS Net"
and have checked
I completed the steps correclty numerous times.
However when I try to execute a php page i am presented with the following error:
HTTP Error 500.0 - Internal Server Error
C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly
Detailed Error Information
Module: FastCgiModule
Notification: ExecuteRequestHandler
Handler: PHP via FastCGI
Error Code: 0x000000ff
Requested URL: localhost/test.php
Physical Path: C:\inetpub\wwwroot\test.php
Logon Method: Negotiate
Logon User: Domain\user"
These are the Steps and methods,
The setup for running php scripts is a four part procedure.
A) The first part is telling the web server where to find the "php.exe" which will execute the code.
B ) The second part is telling the web server how to handle the "*.php" files which will be passed to the "php-cgi.exe".
C) The third part is telling the web server how this is going to work which is a "Handler Mapping".
D) The fourth part is telling the web server it will use "Fast CGI" as a safe method to execute the code.
The steps are open the IIS Manager and find the "Panel" marked "Handler Mappings".
While in the "Handler Mappings" select create a new mapping.
For the new mapping select the wildcard "*.php" then for the "executtable" browse to where the "php-cgi.exe" is located
enclose the executable name in double quotes ""php-cgi.exe"" then
select in the method to use select the "Fast-CGI"
then go to the "Restrictions" "Button" then select each "Tab"
Mapping ( file and the check box selected)
Access( file check box).
Verbs (type in GET,HEAD,POST).
Close the "button" and the dialog it then will prompt with do you want to all this press the "yes".
Exit the "Handler Mapping" dialog.
While still in the IIS manager find the "Panel" titled "Fast CGI" open the "panel" and browse to where
the "php-cgi.exe" is located. You then will have an additional dialog that has a label "Monitor Changes to file"
select this option and browse to where the "php.ini" is located.
After making all the changes above restart the web server.
The steps here are just the basics to get the mapping correct.
You should be able to execute php code at the server
Cheers :)
If you have more issues post your questions to this thread.
Martin :)
<div class=ForumPostContentText>
</div>PHP FastCGI IIS7 php fastcgi 500 IIS7 fastCGI Installation IIS7 FastCGI Installation Download Broken Link FastCGI process exited unexpectedly PHP IIS7 2008 PHP FastCGI extensions php fastcgi error iis7 fastcgi fastCGI error fastcgi module warning error 500 IIS 7.0 IIS7 fastcgi Installation vista SP1 PHP php fascgi fastCGI php mysql fascgi IUSR IIS_USR permission php FASTCGI IUSR IIS_USR permission php iis7 fastcgi 500-error php fastcgi php.ini php.ini_config IIS 7.5 php.ini 404 IIS7 FastCGI moodle error iis 7 eventlog PEAR PHPmyAdmin 500 - Internal server error. http FastGCI http-error 500 IIS 7.5 php fastcgi php fastcgi timezone php.ini windows 7 iusr php-cgi.exe iis7 fastcgi php performance PHP IIS7 64bit plesk PHP Manager ntdll.dll 500.0 thread cpu 100% error 503 on IIS 7 with PHP PHP 5.3.5 slow php5.3.5 multiple sites running slow performance slow iis 7 with fast cgi running slow php log errors IIS 7 fastCGI error PHP 500 errors Information
Community Member Award 2011