HTTP Error 500.0 - Internal Server Error An unknown FastCGI error occured

5

I'm running IIS7 on Windows Server 2008 with Plesk 10. I have website under plesk and a site not under plesk and only on IIS. The website under plesk successfully runs php files but the other website gives error:

HTTP Error 500.0 - Internal Server
Error An unknown FastCGI error occured

Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP5-FastCGI-php
Error Code 0x8007010b
Requested URL http://*.com:80/test.php Physical
Path C:\IIS*.com\test.php
Logon Method Anonymous
Logon User Anonymous

PHP5-FastCGI-php is configured exactly like the site under plesk. php-cgi.exe is located at C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\

EDIT: Here is my php.ini but I don't get any errors.

error_reporting = E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = On
error_log = "C:\Program Files (x86)\...\log\test.log"
error_log = syslog
php
iis
iis-7.5
asked on Stack Overflow May 30, 2011 by HasanG • edited May 30, 2011 by HasanG

5 Answers

9

Granted Read & execute, List folder contents for Everyone on folder

C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5

and now php is up and running for every Application Pool. The main problem with plesk was, only sites running with Application Pool Identity of a user which is member of psacln.

answered on Stack Overflow Jun 4, 2011 by HasanG
3

I think better than granting EVERYONE, would be to grant the builtin IIS group "IIS_IUSRS" read, read and execute and list folder contents on the PHP folder.

answered on Stack Overflow Feb 4, 2013 by Robin
2

I had the same issue and look for a solution for 2 days. It was trial and error. The error code was 0x8007010b. In IIS logs

#Fields: ... sc-status sc-substatus sc-win32-status time-taken
         ... 500       0            267             4

Both error 0x8007010b and 267 (use command NET HELPMSG 267) say that The directory name is invalid.

Solution:

  1. Grant full-access to IUSR to:
    • my webapp folder
    • folder containing the executable to be run (in my case python.exe)
  2. In IIS go to -> Authentication (double-click it) -> Select Anonymous Authentication (should be Enabled) -> Edit... -> Choose 'Specific User' set IUSR
  3. Select root IIS (click) -> Authentication (double-click it) -> Select Anonymous Authentication (should be Enabled) -> Edit... -> Choose 'Specific User' set IUSR

After doing steps 1-3, Error 500.0 was gone. In my case step 3 was missing. I think it is an important detail to know.

Hope it help!

answered on Stack Overflow Aug 17, 2018 by C. Damoc
0

Try to find more info in logs. Then try to find all *.log files in your panel's dir. Those with latest modified time should give a chance.

Logs could be defined not in php.ini only. Try to search for them -- not trust any *.ini files :)

answered on Stack Overflow May 30, 2011 by gaRex
0

I had the same problem. once i try to get on the phpmyadmin page it gives me the 500 error response. To fix this:

Step 1) you've to enable the extensions " extension=php_gd2.dll ", " extension=php_mbstring.dll " , and " extension=php_mysql.dll " in php.ini (in php folder) ( if you did that already then go to step two).

Step 2) create a folder in c: named "temp" and inside that folder create another folder named "phpsessions" , after doing so go to php.ini (in php folder) and look for "session.save_path" and replace whatever between the quotation mark with the location of the php session you created i.e. "C:\temp\phpsessions" and don't forget to uncomment it ;

Good luck to my fellow geeks :P

answered on Stack Overflow Apr 26, 2014 by pay it forward

User contributions licensed under CC BY-SA 3.0