HTTP 错误 500.0 - 内部服务器错误 发生未知的 FastCGI 错误
我在带有 Plesk 10 的 Windows Server 2008 上运行 IIS7。我在 plesk 下有一个网站,还有一个不在 plesk 下且仅在 IIS 上的网站。 plesk下的网站成功运行php文件,但其他网站报错:
HTTP 错误 500.0 - 内部服务器
错误发生未知的 FastCGI 错误模块 FastCgiModule
通知执行请求处理程序
处理程序 PHP5-FastCGI-php
错误代码 0x8007010b
请求的 URL http://*.com:80/test.php 物理
路径 C:\IIS*.com\test.php
登录方式 匿名
匿名用户登录
PHP5-FastCGI-php 的配置与 plesk 下的站点完全相同。 php-cgi.exe 位于 C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\
编辑: 这是我的 php.ini 但我没有收到任何错误。
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
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*.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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
授予阅读& 文件夹中的所有人列出文件夹内容
执行,为C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5
现在 php 已启动并为每个应用程序池运行。 plesk 的主要问题是,只有使用属于 psacln 成员的用户的应用程序池身份运行的站点。
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.
前言:此解决方案适用于我的 Python Flask 应用程序
如果您的文件权限正确,则问题可能出在您的应用程序池设置中。
应用程序池
选项卡设置应用程序池默认值
...进程模型<下设置
身份
/code> 致 LocalSystemFuture 的读者,我花了几天时间寻找这个问题的解决方案。希望这能在短时间内解决您的问题:)
Preface: This solution worked for my Python Flask application
If your file permissions are correct, the problem might lie in your Application Pools settings.
Application Pools
tabSet Application Pool Defaults
...Identity
underProcess Model
to LocalSystemFuture readers, I spent several days searching for a solution to this problem. Hopefully this fixes your problem in a fraction of the time :)
我认为比授予所有人更好的方法是授予内置 IIS 组“IIS_IUSRS”读取、读取和执行以及列出 PHP 文件夹上的文件夹内容的权限。
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.
我遇到了同样的问题,并寻找解决方案 2 天。这是反复试验。
错误代码为0x8007010b。
在 IIS 日志中,
错误 0x8007010b 和 267(使用命令
NET HELPMSG 267
)均表明目录名称无效。
解决方案:
IUSR
IUSR
执行步骤 1-3 后,错误 500.0 消失了。就我而言,缺少第 3 步。我认为这是一个需要了解的重要细节。
希望有帮助!
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
Both error 0x8007010b and 267 (use command
NET HELPMSG 267
) say thatThe directory name is invalid.
Solution:
IUSR
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!
尝试在日志中查找更多信息。
然后尝试在面板目录中查找所有 *.log 文件。那些修改时间最新的应该给一个机会。
日志不仅可以在 php.ini 中定义。尝试搜索它们——不要信任任何 *.ini 文件:)
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 :)
我也有同样的问题。一旦我尝试进入 phpmyadmin 页面,它就会给我 500 错误响应。要解决此问题:
步骤1)您必须在php.ini(在php文件夹中)中启用扩展“extension=php_gd2.dll”、“extension=php_mbstring.dll”和“extension=php_mysql.dll”(如果您已经这样做了然后转到第二步)。
步骤2)在c:中创建一个名为“temp”的文件夹,并在该文件夹内创建另一个名为“phpsessions”的文件夹,然后转到php.ini(在php文件夹中)并查找“session.save_path”
并将引号之间的任何内容替换为您创建的 php 会话的位置,即“C:\temp\phpsessions”,并且不要忘记取消注释;
祝我的极客们好运 :P
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