- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在处理从服务器端调用的 Perl 脚本,该脚本包含在 Apache 2 服务器上。该脚本正在显示通用的“内部服务器错误”页面,而不是向我显示实际错误。当我检查 Apache 错误日志时,我看到以下消息:
unable to include "/foobar/index.pl" in parsed file /home/foouser/domains/foosite.com/public_html/foobar/index.shtml, referer: http://www.foosite.com/foobar/
suexec policy violation: see suexec log for more details, referer: http://www.foosite.com/foobar/
Premature end of script headers: settings.pl, referer: http://www.foosite.com/foobar/
如何让 Perl 脚本显示错误而不是“内部服务器错误”?
use CGI::Carp qw(fatalsToBrowser);
但是,如果问题出在 Apache 配置而不是 Perl 脚本上,那么错误将不会发送到浏览器,因为 Perl 代码没有被解释。在这种情况下,我们可以看出我遇到了 Apache 错误(而不是 Perl 错误),因为这一行:
suexec policy violation: see suexec log for more details
当 Apache 在 SUexec 模式下运行时会发生这种情况(这对于共享主机来说似乎很常见)。我不确定究竟是什么改变了导致这个错误,但这就是我想要找出的。
最佳答案
可能您正在使用共享主机并且您遇到此问题是因为您的 脚本目录或 脚本文件 确实拥有除 755
之外的其他权利.
这是一个 case从荷兰语翻译过来的。
关于perl - 当通过服务器端包含调用 Perl 时,什么导致 "suexec policy violation"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2033726/
我在 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
我是一名优秀的程序员,十分优秀!