- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试运行我的网站时,它显示 500 internal server error
:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
[cgi:error] [pid 13006] [client 141.101.104.167:28335] AH01215: suexec policy violation: see suexec log for more details: /home/myweb/public_html/cgi-bin/index.cgi
[cgi:error] [pid 13006] [client 141.101.104.167:28335] End of script output before headers: index.cgi
[2016-04-23]: uid: (500/myweb) gid: (500/myweb) cmd: index.cgi
[2016-04-23]: error: target uid/gid (500/500) mismatch with directory (500/500) or program (0/0) or trusted user (0/10)
suexec
我决定检查一下,所以在
WHM/Configure PHP and suEXEC
我发现它的状态为 On,我禁用它并尝试再次运行网站但没有任何变化,我再次启用它但网站仍然无法运行。
/usr/local/apache/conf/httpd.conf
并删除了指令:
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup myweb myweb
</IfModule>
</IfModule>
500 internal server error
/home/myweb/public_html/cgi-bin/
的权限来自
777
至
755
然后到
775
但问题仍然存在。
最佳答案
将权限更改为 755
为您的所有文件
享受 !
问题是权限不合适
关于cgi - “违反 suexec 政策”会阻止我的网站运行吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36809470/
我在 PHP 上开发了一个站点并使用 iPage 托管它。它工作正常,但今天我检查了该网站,它说: The server encountered an unexpected condition whi
使用 ITK 模块而不是运行 Apache 服务器的 Suexec 有什么好处?思路是一样的,就是用所有者权限而不是nobody、www或者apache来运行脚本! 使用 ITK 来支持 suexec
我在 Amazon EC2 实例上启动了一个 Apache PHP 应用程序。我们将终止使用 AWS ELB。我们使用的是 ACM 自签名证书。 出现一些错误: [suexec:notice] [pi
当我尝试运行我的网站时,它显示 500 internal server error : Internal Server Error The server encountered an internal
错误信息是: command not in docroot (/home/site1/cgi-bin/test.pl). Here我发现了这个: suexec requires the CGI scr
我的服务器环境:centos 6.4,带有 prefork 模块的 apache2.2,带有模块 5.c 的 php 5.3。 我有 10 个由 apache 运行的虚拟主机,我想分离这 10 个站点
我已经设置了 Apache2.4 + FastCgi、PHP-FPM、SuExec,在没有 Suexec 的情况下也可以正常工作。但是当我启用 Suexec 时,它给我的文件不存在错误(访问 php
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
我使用 suEXEC、fcgid 和 userdir 设置 Apache,以增强网站的整体安全性。 除了带有“.”的用户帐户外,一切正常。他们的帐户名之间。在使用 suEXEC 和 fcgid 之前,
是否可以使用 mpm-prefork 配置 Apache 2.4 让用户作为 Linux 用户进行身份验证(使用例如 basic auth),然后 setuid 过程到此执行请求之前的用户? 似乎 m
我正在处理从服务器端调用的 Perl 脚本,该脚本包含在 Apache 2 服务器上。该脚本正在显示通用的“内部服务器错误”页面,而不是向我显示实际错误。当我检查 Apache 错误日志时,我看到以下
我按照步骤进行配置:http://sitaramc.github.com/gitolite/ggshb.html 但是当我尝试制作一个 git clone 时,我遇到了这个错误: git clone
我试图让 git-http-backend 在我的远程 vps 上工作,但没有成功。我以类似于 this question 上的方式调整了 httpd.conf ,但是只要我添加 ScriptAlia
我刚刚使用 Plesk 迁移工具执行了从服务器到服务器的迁移,一切正常,网站、数据库、电子邮件设置、重定向......一切。 但是,唯一的问题是我从旧服务器传输的所有网站都在 www-data 用户中
我有以下 CGI 脚本,它启动 Flask Web 应用程序。然而我得到的只是 500 Internal Server Error #!/home/xxx/public_html/cgi-bin/ve
我是一名优秀的程序员,十分优秀!