简体   繁体   English

PHP升级后的FastCGI错误

[英]FastCGI error after PHP Upgrade

As outlined in a previous question ( https://stackoverflow.com/questions/21648349/php-5-5-9-test-failures-and-internal-server-errors ) my server administrator recently tried to install php 5.5.9 (using a wrapper) alongside our current configuration, which is php 5.3.8. 如上一个问题( https://stackoverflow.com/questions/21648349/php-5-5-9-test-failures-and-internal-server-errors )所述,我的服务器管理员最近尝试安装php 5.5.9。 (使用包装器)以及当前配置,即php 5.3.8。 The o/s is Opensuse 12.1, and it's a Plesk server (11.0.9). o / s是Opensuse 12.1,它是一个Plesk服务器(11.0.9)。

After a successfull installation and initiating the new configuration on a specific vhost, every php script throws out a 500 Internal Server Error. 在成功安装并在特定虚拟主机上启动新配置后,每个PHP脚本都会抛出500 Internal Server Error。 The Apache logs do not show any useful information, however we were able to get mod_sec to pickup a fastcgi error which is as follows: Apache日志未显示任何有用的信息,但是我们能够获取mod_sec来拾取如下的fastcgi错误:

**Apache-Error: ** Apache的错误:

[file "fcgid_proc_unix.c"] [line 634] [level 4] [status 104] mod_fcgid: error reading data from FastCGI server


Apache-Error: [file "util_script.c"] [line 435] [level 19] Premature end of script headers: db.php**

This error appears only when 5.5.9 is active, and disappears as soon as we switch back to 5.3.8. 仅当5.5.9处于活动状态时,此错误才会出现,切换回5.3.8时,此错误就会消失。 This is the only lead we have to go on :( 这是我们必须继续进行的唯一工作:(

We've also tried checking htaccess & permissions, so far no change. 我们还尝试检查htaccess和权限,到目前为止没有任何更改。

Thanks! 谢谢!

Problem solved, finally. 问题终于解决了。

In our case we had to CHMOD the cgi-bin for the vhost to 755 (it was 775). 在我们的案例中,我们必须将虚拟主机的cgi-bin修改为755(是775)。 After that, smooth running! 之后,平稳运行!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM