【问题标题】:suPHP upgrade causing 500 internal server errorsuPHP 升级导致 500 内部服务器错误
【发布时间】:2010-12-07 11:02:00
【问题描述】:

我让我的服务器每晚执行一次 yum 更新。昨晚,它更新了 suPHP 到最新版本: Oct 16 01:25:43 Updated: mod_suphp-0.7.1-1.el5.art.x86_64

此更新导致我的网站引发 500 内部服务器错误。根据我所能找到的,我应该只需要更改我的 suphp.conf 文件中的最后两行以包含引号,我这样做了。但是重新启动 apache 后,我仍然收到错误 500。我的文件或目录都没有设置为 777,所以这也不是问题。有其他人知道最新的 suPHP 版本中发生了什么变化会导致我的配置不再工作吗?谢谢。这是我的 conf 文件现在的样子:

[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=warn

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=true

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0022

; Minimum UID
min_uid=500

; Minimum GID
min_gid=500

; Use correct permissions for mod_userdir sites
handle_userdir=true

[handlers]
;Handler for php-scripts
;x-httpd-php=php:/usr/bin/php-cgi
php5-script="php:/usr/bin/php-cgi"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"

我正在使用原子火箭龟回购。

【问题讨论】:

    标签: apache config


    【解决方案1】:

    我修好了。不推荐使用以下行,因此我只需要删除它: handle_userdir=true

    【讨论】:

      猜你喜欢
      • 2013-08-11
      • 2012-03-29
      • 2014-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-23
      • 2011-01-22
      • 1970-01-01
      相关资源
      最近更新 更多