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 occuredModule FastCgiModule
Notification ExecuteRequestHandler
Handler PHP5-FastCGI-php
Error Code 0x8007010b
Requested URL http://*.com:80/test.php Physical
Path C:IIS*.comtest.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)ParallelsPleskAdditionalPleskPHP5
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)...logtest.log"
error_log = syslog
asked May 30, 2011 at 12:08
HasanGHasanG
12.5k29 gold badges100 silver badges153 bronze badges
3
Granted Read & execute, List folder contents for Everyone on folder
C:Program Files (x86)ParallelsPleskAdditionalPleskPHP5
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 Jun 4, 2011 at 10:40
HasanGHasanG
12.5k29 gold badges100 silver badges153 bronze badges
2
Preface: This solution worked for my Python Flask application
If your file permissions are correct, the problem might lie in your Application Pools settings.
- Go to IIS manager
- Click on your server’s
Application Poolstab - Click
Set Application Pool Defaults… - Set the
IdentityunderProcess Modelto LocalSystem
Future readers, I spent several days searching for a solution to this problem. Hopefully this fixes your problem in a fraction of the time 
answered Jun 29, 2021 at 1:46
sharkk22sharkk22
1752 silver badges6 bronze badges
1
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 Feb 4, 2013 at 18:30
RobinRobin
1,5733 gold badges15 silver badges24 bronze badges
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:
- Grant full-access to IUSR to:
- my webapp folder
- folder containing the executable to be run (in my case python.exe)
- In IIS go to -> Authentication (double-click it) -> Select Anonymous Authentication (should be Enabled) -> Edit… -> Choose ‘Specific User’ set
IUSR - 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 Aug 17, 2018 at 9:03
C. DamocC. Damoc
4564 silver badges7 bronze badges
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 May 30, 2011 at 13:23
gaRexgaRex
4,13424 silver badges37 bronze badges
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:tempphpsessions» and don’t forget to uncomment it ;
Good luck to my fellow geeks 
answered Apr 26, 2014 at 2:46
When attempting to use Python 3.5 with my Django App, I get a 500 error with the message, «An unknown FastCGI error occurred». I have no problems with Python 3.4 — works like a charm. Here is my web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appSettings>
<!--<add key="WSGI_ALT_VIRTUALENV_HANDLER" value="django.core.wsgi.get_wsgi_application()" />-->
<!--<add key="WSGI_ALT_VIRTUALENV_ACTIVATE_THIS" value="c:usersaarsanprojectscondofrontenvScriptspython.exe" />-->
<add key="WSGI_HANDLER" value="django.core.wsgi.get_wsgi_application()" />
<add key="PYTHONPATH" value="c:usersaarsanprojectscondofront" />
<add key="DJANGO_SETTINGS_MODULE" value="condofront.settings_dev" />
<!--<add key="WSGI_LOG" value="c:LogFileswfastcgi.log"/>-->
</appSettings>
<system.webServer>
<handlers>
<add name="PythonHandler"
path="handler.fcgi"
verb="*"
modules="FastCgiModule"
scriptProcessor="c:usersaarsanappdatalocalprogramspythonpython35python.exe|c:usersaarsanappdatalocalprogramspythonpython35libsite-packageswfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
<rewrite>
<rules>
<rule name="Static Files" stopProcessing="true">
<conditions>
<add input="true" pattern="false" />
</conditions>
</rule>
<rule name="Configure Python" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{REQUEST_URI}" pattern="^/static/.*" ignoreCase="true" negate="true" />
</conditions>
<action type="Rewrite" url="handler.fcgi/{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
- Remove From My Forums
-
Question
Answers
-
User1243808635 posted
It worked finally. At first I started registering PHP manually and I believe at that point of time, I created web.config and the handler inside it was pointing to different version of PHP. Since I used Web Platform Installer later on to install PHP, I DELETED
the web.config file from the wwwroot folder and I could see the PHP page using the URL http://localhost/phpinfo.phpI guess that was it.
Thanks everyone for your inputs.
-
Marked as answer by
Tuesday, September 28, 2021 12:00 AM
-
Marked as answer by
How to solve «An unknown FastCGI error occured» error in IIS7 and IIS 7.5 ?
PHP does not work with «An unknown FastCGI error occured» error in IIS 7 / 7.5/ 8
With PHP domains shows the following error:
HTTP Error 500.0 — Internal Server Error An unknown FastCGI error occurred Error Code 0x800736b1
FromCommandLinethe following error occur:
C:Windowssystem32>»C:Program FilesHSphere3rdpartyPHPPHP53php-cgi.exe» -v The application has failed to start because its side-by-side configuration isin correct. Please see the application event log for more detail.
In theEventViewerwe could see:
Activation context generation failed for «c:program fileshsphere3rdpartyphpphp53php-cgi.exe». Dependent Assembly Microsoft.VC90.CRT,processorArchitecture=»x86″,publicKeyToken=»1fc8b3b9a1e18e3b»,type=»win32″,version=»9.0.21022.8″ could not be found. Please use sxstrace.exe for detailed diagnosis.
Windows System Misconfiguration.
Installing the following updates should resolved the issue.
PHP does not work with «An unknown FastCGI error occured» error in IIS 7 / 7.5/ 8
With PHP domains shows the following error:
HTTP Error 500.0 — Internal Server Error An unknown FastCGI error occurred Error Code 0x800736b1
FromCommandLinethe following error occur:
C:Windowssystem32>»C:Program FilesHSphere3rdpartyPHPPHP53php-cgi.exe» -v The application has failed to start because its side-by-side configuration isin correct. Please see the application event log for more detail.
In theEventViewerwe could see:
Activation context generation failed for «c:program fileshsphere3rdpartyphpphp53php-cgi.exe». Dependent Assembly Microsoft.VC90.CRT,processorArchitecture=»x86″,publicKeyToken=»1fc8b3b9a1e18e3b»,type=»win32″,version=»9.0.21022.8″ could not be found. Please use sxstrace.exe for detailed diagnosis.
Windows System Misconfiguration.
Installing the following updates should resolved the issue.
Popular posts from this blog
How to resolve InitializeSandbox() called with multiple threads in process gpu-process. Error in Linux with Google Chrome ?
How to resolve InitializeSandbox() called with multiple threads in process gpu-process. Error in Linux with Google Chrome ? Hello Everyone, While launching google chrome browser, if you are getting below error in Linux, remove Google Chrome config directory from your home folder. ❯❯ ~ 18:03 google-chrome-stable [ 45359:45359:0125/180542.953317:ERROR:sandbox_linux.cc ( 378 ) ] InitializeSandbox ( ) called with multiple threads in process gpu-process. Note : Doing below command will delete your chrome data, hope you have enabled cloud sync. So remove config directory of google chrome from your home directory ❯❯ ~ 18:07 rm -rf ~/.config/google-chrome Then launch google chrome again Hope it helps. Thanks Raaz
How to find outgoing IP in Linux ?
Here is a small snippet to find outgoing IP of your Linux box. 1. To find the outgoing internal IP only # ip route get 8.8.8.8 | head -1 | gawk ‘{ print $7 }’ 2. To find the outgoing internal IP along with interface. # ip route get 8.8.8.8 | head -1 | gawk ‘{ print $5,$7 }’ 3. In-case if your system is connected to Internet, to find the outgoing external IP # curl ifconfig.me Note: In case if your system having public IP assigned then there is no difference between outgoing internal IP and external IP (both are same).
Uploading files to FTP/SFTP using CURL
Hello, Today I am writing below article which can help you to upload files to SFTP/FTP by using CURL. Ok why we need that ? Let me tell explain!! How we login into SFTP/FTP ? [root@virt03 test]# sftp 192.168.56.110 Connecting to 192.168.56.110… root@192.168.56.110’s password: sftp> ls anaconda-ks.cfg nodes post-install post-install.log sftp> exit and uploading files with put command. Its a lengthy way. So recently I have gone through few articles and with some R&D I have modified it as script and command-line argument support.So you can call the script with filename as argument. So Lets do this!!! Command 1 : This is for uploading a single to SFTP/FTP by using CURL. SFTP curl -k -u virt03:virt03 -T file4 sftp://192.168.56.110/home/virt03/ Syntax : curl -k -u username:password -T filename sftp://IP_Addreess OR Hostname:/path/to/upload FTP curl -k -u virt03:virt03 -T f
I’m trying to install MediaWiki on a Win2008r2 server, but can’t manage to install PHP. Here’s what I did:
- Grabbed a Zip archive of PHP and unzipped it into C:PHP.
- Created two subdirs: c:PHPsessiondata and c:PHPuploadtemp.
- Granted modify rights to the IUSR account for the subdirs.
- Copied php.ini-production as php.ini
- Edited php.ini and made the following changes:
fastcgi.impersonate = 1
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
open_basedir = "c:inetpubwwwroot;c:PHPuploadtemp;C:PHPsessiondata"
extension = php_mysql.dll
extension_dir = "./ext"
upload_tmp_dir = C:PHPuploadtemp
session.save_path = C:phpsessiondata
- Install Web server role, selected CGI and HTTP Redirection options.
-
In the Handler Mappings:
- Added Module Mapping. Entered the following values:
- Path = *.php, Module = FastCgiModule, Executable = c:phpphp-cgi.exe, Name = PHP via FastCGI.
-
Created a test page into wwwroot directory: phpinfo.php and set the contents like this:
< ?php phpinfo(); ?> - Browsed to http://localhost/phpinfo.php
But then I get:
HTTP Error 500.0 - Internal Server Error
An unknown FastCGI error occured
Detailed Error Information
Module: FastCgiModule
Notification: ExecuteRequestHandler
Handler: PHP via FastCGI
Error Code: 0x800736b1
Requested URL: http://localhost:80/phpinfo.php
Physical Path: C:inetpubwwwrootphpinfo.php
Logon Method: Anonymous
Logon User: Anonymous
Does anyone know what I’m doing wrong here?
Thanks.
asked Oct 26, 2010 at 9:07
This is caused by the lack of the VC9 runtime on your machine. You will need to install VC9 runtime from here.
mgorven
30.3k7 gold badges77 silver badges121 bronze badges
answered May 13, 2011 at 19:23
1
You’ve missed out a few steps. The error code: 0x800736b1 suggest the DLL is not found. I don’t see anywhere where you’ve entered the environmental settings?
- Launch the registry editor: Start => Run => regedit
- Create a new key named PHP under HKEY_LOCAL_MACHINESOFTWARE
- Right-click on the newly created key and select New => String Value
- Name the new value IniFilePath and set the value data to C:php
- Click on Start => Settings => Control Panel and double-click the System icon (using the class view).
- Click on the Advanced system settings link from the left column.
- From the System Properties window, click on the Advanced tab and then on the Environment — Variables button at the bottom.
- Select the Path variable from the System Variables section and click on Edit. Add c:php to your system path (be sure to include the semi-colon separator).
-
After adding this, restart, launch command prompt and type «C:PHP>php –info». This checks if PHP is picked up correctly.
-
Test your php script
answered Feb 3, 2012 at 13:40
Cold TCold T
2,3912 gold badges17 silver badges29 bronze badges
Depending on which PHP version you download for windows (non-thread-safe 64 bit or 32 bit, V9 or V11 compiled), you will need to also download and install the appropriate Visual C++ redistributable app (V9 or V11).
If you had previously installed the module mapping in IIS for FastCGI, you will need to uninstall it and the CGI Role Service (and reboot). After installing VC9 or VC11, reinstall the CGI Role Service (this will include the FastCGI service), and reinstall the CGI module mapping to point to the path to php-cgi.exe.
Next, append the path with the full executable: e.g. ;C:phpphp-cgi.exe. Be sure to include the parenthesis to distinguish the new entry.
Finally, be sure to set the php.ini values as described above, and also set your date.timezone value. You will find the data.timezone acceptable values here.
masegaloeh
18.1k10 gold badges56 silver badges105 bronze badges
answered Feb 3, 2015 at 16:24
Hello everybody!!
Could you please help me? I’m trying to run php on IIS in Windows 7 and when I try to install it following every step closely from php.net, it gives me an error:
HTTP Error 500.0 — Internal Server Error
An unknown FastCGI error occurred
Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0x8007010b
Requested URL http://localhost:80/index.php Physical Path C:inetpubwwwrootindex.php Logon Method Anonymous Logon User Anonymous
I have no clue what I did wrong or what is wrong. Here’s how I tried to install it:
enabled IIS and CGI
control panel > programs > Turn Windows features on or off > enabled Internet Information Service > World Wide Web Services > Application Development Features > enabled CGI (all other checkmarks in the Application Development Features are OFF)
http://localhost/ works
downloaded and installed Microsoft 2008 C++ Runtime (x64) and did a Windows Update, updating it
downloaded PHP 5.4.15 VC9 x86 Non Thread Safe. unzipped it onto desktop to folder «php»
inside the folder «php», renamed the file «php.ini-production» into «php.ini»
edited the php.ini file:
changed this
; extension_dir = «ext»
to this
extension_dir = «ext»
changed this
;extension=php_fileinfo.dll
to this
extension=php_fileinfo.dll
also enabled these
extension=php_gd2.dll
extension=php_imap.dll
extension=php_mysql.dll
extension=php_mysqli.dll
left this line untouched
log_errors = On
changed this
;error_log = php_errors.log
to this
error_log = php_errors.log
and created a file «php_errors.log» in the «php» folder
changed this
;cgi.force_redirect = 1
to this
cgi.force_redirect = 0
changed this
;cgi.fix_pathinfo=1
to this
cgi.fix_pathinfo=1
changed this
;fastcgi.impersonate = 1
to this
fastcgi.impersonate = 1
changed this
;fastcgi.logging = 0
to this
fastcgi.logging = 0
followed these instructions:
1. In the Windows Start Menu choose «Run:», type «inetmgr» and click «Ok»;
2. In the IIS Manager user interface select the server node in the «Connections» tree view;
3. In the «Features View» page open the «Handler Mappings» feature;
4. In the «Actions» pane click «Add Module Mapping…»;
5. In the «Add Module Mapping» dialog enter the following:
Request path: *.php
Module: FastCgiModule
Executable: C:UsersYankaDesktopphpphp-cgi.exe
Name: PHP_via_FastCGI
6. Click «Request Restrictions» button and then configure the mapping to invoke handler only if request is mapped to a file or a folder;
7. Click OK on all the dialogs to save the configuration.
in command line application, entered these 3 lines, pressing the «Enter» key after each line:
%windir%system32inetsrvappcmd.exe set config ^
-section:system.webServer/defaultDocument /+»files.[value=index.php]» ^
/commit:apphost
after entering these lines, the command line application said something, beginning with «Applied configuration changes…»
Thank you!!

