Произошла неизвестная ошибка fastcgi

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

Lex Li's user avatar

Lex Li

60.6k9 gold badges117 silver badges147 bronze badges

asked May 30, 2011 at 12:08

HasanG's user avatar

3

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 Jun 4, 2011 at 10:40

HasanG's user avatar

HasanGHasanG

12.8k29 gold badges100 silver badges156 bronze badges

3

Preface: This solution worked for my Python Flask application

If your file permissions are correct, the problem might lie in your Application Pools settings.

  1. Go to IIS manager
  2. Click on your server’s Application Pools tab
  3. Click Set Application Pool Defaults
  4. Set the Identity under Process Model to 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

sharkk22's user avatar

sharkk22sharkk22

3634 silver badges7 bronze badges

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 Feb 4, 2013 at 18:30

Robin's user avatar

RobinRobin

1,5923 gold badges16 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:

  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 Aug 17, 2018 at 9:03

C. Damoc's user avatar

C. DamocC. Damoc

4764 silver badges9 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

gaRex's user avatar

gaRexgaRex

4,14425 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:\temp\phpsessions» and don’t forget to uncomment it ;

Good luck to my fellow geeks :P

answered Apr 26, 2014 at 2:46

pay it forward's user avatar

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

Lex Li's user avatar

Lex Li

60.6k9 gold badges117 silver badges147 bronze badges

asked May 30, 2011 at 12:08

HasanG's user avatar

3

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 Jun 4, 2011 at 10:40

HasanG's user avatar

HasanGHasanG

12.8k29 gold badges100 silver badges156 bronze badges

3

Preface: This solution worked for my Python Flask application

If your file permissions are correct, the problem might lie in your Application Pools settings.

  1. Go to IIS manager
  2. Click on your server’s Application Pools tab
  3. Click Set Application Pool Defaults
  4. Set the Identity under Process Model to 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

sharkk22's user avatar

sharkk22sharkk22

3634 silver badges7 bronze badges

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 Feb 4, 2013 at 18:30

Robin's user avatar

RobinRobin

1,5923 gold badges16 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:

  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 Aug 17, 2018 at 9:03

C. Damoc's user avatar

C. DamocC. Damoc

4764 silver badges9 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

gaRex's user avatar

gaRexgaRex

4,14425 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:\temp\phpsessions» and don’t forget to uncomment it ;

Good luck to my fellow geeks :P

answered Apr 26, 2014 at 2:46

pay it forward's user avatar

  • Remove From My Forums
  • Question

  • User1633977539 posted

    I am trying to install wordpress on iis but I cant seem to make it work.

     I keep recieving the following error:

     Error Summary

    HTTP Error 500.0 — Internal Server Error

    An unknown FastCGI error occured

    <fieldset style=»width: 872px; height: 137px;»><legend>Detailed Error Information</legend>

    Module FastCgiModule
    Notification ExecuteRequestHandler
    Handler PHP52_via_FastCGI
    Error Code 0x8007010b

    I cant seem to make it work…

    Please help

    </fieldset>

Answers

  • User1633977539 posted

    The premissions was the problem..

    Thanks!

    No ihave a different problem…

    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at
    localhost. This could mean your host’s database server is down.

    • Are you sure you have the correct username and password?
    • Are you sure that you have typed the correct hostname?
    • Are you sure that the database server is running?

    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the
    WordPress Support Forums.

    Try Again

     I thought the wordpress installation creates the database. Am I wrong?

    • Marked as answer by

      Tuesday, September 28, 2021 12:00 AM

 

Also make sure IUSR and IIS_IUSRS have read,execute,list permissions

for:

Physical Path C:\inetpub\wwwroot\Blog\index.php

What are the Application Pool settings
http://learn.iis.net/page.aspx/624/application-pool-identities/ for the Blog

» Net 2.0 and Classic Mode»  ?

IIS Net Reference
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis/

Martin

  • User1633977539 posted

    The premissions was the problem..

    Thanks!

    No ihave a different problem…

    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at
    localhost. This could mean your host’s database server is down.

    • Are you sure you have the correct username and password?
    • Are you sure that you have typed the correct hostname?
    • Are you sure that the database server is running?

    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the
    WordPress Support Forums.

    Try Again

     I thought the wordpress installation creates the database. Am I wrong?

    • Marked as answer by
      Anonymous
      Tuesday, September 28, 2021 12:00 AM

  • User-1672167363 posted

    Hi,

    Cool just permissons :).

    Yes WordPress does create the Database for first time setup. Your correct :D.

    If you get stuck http://forums.iis.net/t/1177760.aspx this is one of the ways out.

    The other is install http://www.heidisql.com/ Heidesql and logon with the «Root» account.

    Open the «wp-config.php» for the current settings.  Make sure MySQL Server is running.

    Using «Root»  Drop the current WP Database. Using «Root» Create new WP Database ( empty). 

    Using «Root» Modify User for  the WP_USER password and permissions.

     Grant Permissions for WP_USER  for localhost Access.

    Grant WP_USER permissions for WP Database.

    Then backup wp-config.php and either use the existing / modified  settings or run the first-time-setup.

    Martin

  • Ошибка fastcgi является одной из самых распространенных проблем, с которой сталкиваются веб-разработчики и администраторы. Она может возникнуть при обработке запросов к веб-серверу и привести к некорректной работе веб-сайта или даже его полной недоступности. В данной статье мы рассмотрим возможные причины появления ошибки fastcgi и предложим несколько способов ее устранения.

    Одной из причин возникновения ошибки fastcgi может быть неправильная конфигурация сервера. Если настройки fastcgi не соответствуют требованиям вашего веб-приложения, то сервер может не справиться с обработкой запросов и выдавать ошибку. Кроме того, ошибки могут возникать из-за неправильно указанных параметров в конфигурационных файлах сервера или из-за неверно настроенных прав доступа к файлам.

    Еще одной возможной причиной ошибки fastcgi является низкая производительность сервера. Если ваш веб-сайт получает большое количество запросов или требует больших ресурсов для обработки запросов, то сервер может перегружаться и выдавать ошибку. В этом случае необходимо оптимизировать работу вашего приложения или увеличить мощность сервера.

    Содержание

    1. Произошла неизвестная ошибка fastcgi: причины и способы ее устранения
    2. Причины ошибки fastcgi
    3. Способы устранения ошибки fastcgi
    4. Что такое fastcgi и как он работает?
    5. Основные причины возникновения ошибки fastcgi
    6. Способы устранения ошибки fastcgi

    Произошла неизвестная ошибка fastcgi: причины и способы ее устранения

    FastCGI (Fast Common Gateway Interface) является кросс-платформенным протоколом, который используется для связи веб-сервера и приложения обработки скриптов. Ошибка «Произошла неизвестная ошибка fastcgi» может возникнуть по нескольким причинам и может привести к неработоспособности веб-сайта.

    Причины ошибки fastcgi

    • Неправильная конфигурация сервера: Ошибка fastcgi может возникнуть из-за неправильной конфигурации веб-сервера или его модулей.
    • Недостаточные права доступа: Проблемы с правами доступа к файлам и директориям, используемым приложением, могут вызвать ошибку fastcgi.
    • Проблемы с ресурсами сервера: Если сервер не имеет достаточных ресурсов (например, памяти или процессорного времени), это может вызвать ошибку fastcgi.
    • Ошибки в коде приложения: Неправильно написанный или несовместимый с версией fastcgi код приложения может вызвать ошибку fastcgi.

    Способы устранения ошибки fastcgi

    1. Проверьте конфигурацию сервера: Убедитесь, что конфигурация веб-сервера и его модулей правильно настроена.
    2. Проверьте права доступа: Проверьте права доступа к файлам и директориям, используемым приложением, и убедитесь, что они настроены правильно.
    3. Увеличьте ресурсы сервера: Если сервер не имеет достаточных ресурсов, рассмотрите возможность увеличения доступных ресурсов, таких как память или процессорное время.
    4. Обновите код приложения: Если ошибка связана с кодом приложения, обновите его до последней версии или устраните ошибки, обнаруженные при отладке.
    5. Свяжитесь с технической поддержкой: Если все вышеперечисленные способы не сработали, обратитесь за помощью к технической поддержке вашего хостинг-провайдера или разработчикам приложения.

    Использование этих способов может помочь в устранении ошибки fastcgi и восстановлении работоспособности веб-сайта. Однако, в каждом конкретном случае могут быть свои особенности, поэтому лучше всего обратиться за помощью к специалистам, которые смогут более глубоко изучить проблему.

    Что такое fastcgi и как он работает?

    FastCGI (Fast Common Gateway Interface) – это протокол взаимодействия между веб-сервером и приложениями, написанными на языках программирования, таких как PHP или Python. Он позволяет повысить производительность веб-сервера, уменьшить нагрузку на систему и обеспечить более стабильную работу веб-приложений.

    Работа с FastCGI происходит следующим образом:

    • Веб-сервер принимает запрос от клиента и передает его FastCGI-обработчику.

    • FastCGI-обработчик запускает интерпретатор языка программирования (например, PHP) и передает ему запрос.

    • Интерпретатор выполняет код приложения и возвращает результат FastCGI-обработчику.

    • FastCGI-обработчик передает результат обратно веб-серверу, который отправляет его клиенту.

    Основное преимущество FastCGI заключается в том, что он позволяет поддерживать постоянное соединение между веб-сервером и приложением. Это позволяет избежать затратного процесса загрузки и выгрузки интерпретатора языка программирования при каждом запросе от клиента. Вместо этого, интерпретатор запустится один раз и будет обрабатывать несколько запросов последовательно.

    Еще одно преимущество FastCGI состоит в том, что он позволяет запускать приложения на удаленных серверах или в отдельных процессах, что упрощает масштабирование и увеличение надежности системы.

    Существует множество веб-серверов и платформ, которые поддерживают FastCGI, например, Nginx и Apache. Как правило, для использования FastCGI необходимо настроить соответствующие параметры на стороне веб-сервера и приложения.

    Основные причины возникновения ошибки fastcgi

    Ошибка fastcgi веб-сервера может возникать по разным причинам. Ниже перечислены основные причины, которые могут привести к появлению этой ошибки:

    • Неправильная конфигурация fastcgi: Ошибка может возникать из-за неправильной конфигурации fastcgi веб-сервера. Это может включать в себя неправильные пути к исполняемым файлам fastcgi, неправильные настройки прав доступа или неправильные параметры работы fastcgi.
    • Несоответствие версий fastcgi и веб-сервера: Если версия fastcgi несовместима с версией веб-сервера, то может возникнуть ошибка. Необходимо убедиться, что используется совместимая версия fastcgi с выбранным веб-сервером.
    • Проблемы с правами доступа: Неправильно настроенные права доступа к файлам и директориям fastcgi могут привести к ошибке. Файлы и директории, с которыми работает fastcgi, должны иметь корректные разрешения на чтение, запись и выполнение.
    • Недостаточные ресурсы сервера: Если веб-сервер не имеет достаточных ресурсов, чтобы обработать запросы fastcgi, могут возникнуть ошибки. Необходимо убедиться, что сервер имеет достаточное количество памяти, процессорных ресурсов и места на диске.
    • Проблемы с кодировкой: Если файлы или данные, обрабатываемые fastcgi, имеют неправильную кодировку, это может вызвать ошибку. Необходимо убедиться, что файлы и данные имеют правильную кодировку, соответствующую настройкам fastcgi и веб-сервера.

    Если возникла ошибка fastcgi, рекомендуется проверить все вышеперечисленные причины и исправить их соответствующим образом. Это поможет решить проблему и вернуть сайт в нормальное функционирование.

    Способы устранения ошибки fastcgi

    Ошибка fastcgi может возникать по разным причинам, однако существуют несколько способов ее устранения.

    1. Проверка конфигурационного файла: убедитесь, что настройки fastcgi указаны верно и соответствуют вашему серверу.
    2. Обновление fastcgi: проверьте, что используется актуальная версия fastcgi и обновите ее при необходимости.
    3. Перезагрузка сервера: попробуйте перезапустить ваш сервер, чтобы обновленные настройки fastcgi вступили в силу.
    4. Отладка кода: внимательно просмотрите свой код и убедитесь, что нет ошибок, которые могут вызвать проблемы с fastcgi.

    Примечание: Если вы не уверены в причине ошибки или не можете ее самостоятельно устранить, рекомендуется обратиться к специалистам в данной области, которые смогут провести детальный анализ и помочь устранить проблему с fastcgi.

    php-cgi.exe - The FastCGI process exited unexpectedly error and how to fix it

    You just installed your brand-new Windows 2012 RC2 Server and you want to setup the PHP framework aswell. You launch the Windows Web Platform and download the latest PHP version (let’s say v5.6.0) and set up php.ini and all the relevant configuration files. Then, as soon as you launch the website, you get the following error:

    C:\Program Files (x86)\PHP\v5.6\phpcgi.exe The FastCGI process exited unexpectedly

    Despite this being a fair common issue, there aren’t many posts explaining how to fix the problem yet. Well, here’s one.

    Solution

    The fix is really simple: you just need to install Visual C++ Redistributable for Visual Studio 2012 Update 4, 32-bit version. Notice that, even if you have a 64-bit operating system, you need to install the 32-bit version because PHP is still a 32-bit application.

    Here’s the download link: http://www.microsoft.com/en-us/download/details.aspx?id=30679

    Once you install that, you’ll be good to go.

    UPDATE: Since the launch of the x64, experimental version of PHP 5.6 (and above) this post requires the following update: if you’re using an 64-bit PHP build, you have to install the 64-bit Visual C++ package, available through the same download link mentioned above. As the two packages can coexist without hassles, our suggestion for 64-bit based installations is to install both as long as x64 PHP builds will be marked as «experimental», so you’ll be able to switch back to the x86 version whenever you need to.

    Понравилась статья? Поделить с друзьями:
  • Произошла неизвестная ошибка apple id macbook
  • Произошла неизвестная ошибка 9061
  • Произошла неизвестная ошибка 9006
  • Произошла неизвестная ошибка 45054 itunes
  • Произошла неизвестная ошибка 9 403