安装su_php后出现500错误,权限问题,“脚本的UID /index.php”小于min_uid“

我刚刚在我的服务器(亚马逊EC2实例)上安装了su_php ,它是我的应用程序中的一个。

现在,当访问我的所有托pipe网站时,出现500 Internal server error

错误日志:

 [error] [client ip] SoftException in Application.cpp:350: UID of script "/var/www/html/www.mywebsite.org.uk/index.php" is smaller than min_uid [error] [client ip] Premature end of script headers: index.php 

ls -l的webroot显示:

 drwxrwxr-x 2 root root 4096 Aug 7 14:23 aws.anothersite.co.uk drwxrwxr-x 7 ec2-user root 4096 Oct 5 18:36 content.mywebsite.org.uk drwxrwxr-x 5 root root 4096 Sep 14 20:19 anothersite.co.uk drwxrwxr-x 2 root root 4096 Oct 5 18:51 logs drwxrwxr-x 7 ec2-user root 4096 Oct 5 18:37 new.mywebsite.org.uk drwxr-xr-x 9 root root 4096 Aug 7 14:10 phpmyadmin drwxrwxr-x 4 root root 4096 Sep 10 20:39 wttw.anothersite.co.uk drwxrwxr-x 27 ec2-user root 4096 Oct 5 18:26 www.mywebsite.org.uk 

我想su_php控制下的三个域(如果可能的话)是:

 drwxrwxr-x 27 ec2-user root 4096 Oct 5 18:26 www.mywebsite.org.uk drwxrwxr-x 7 ec2-user root 4096 Oct 5 18:36 content.mywebsite.org.uk drwxrwxr-x 7 ec2-user root 4096 Oct 5 18:37 new.mywebsite.org.uk 

所有这些网站都closures,并引发500 Internal Server Error

所有anothersite.co.uk域名和子域名,我想在正常的mod_php控制下。

目录 www.mywebsite.org.uk 内的 ls -l

 I removed most files, they all have the same perms as the below -rw-rw-r-- 1 ec2-user root 0 Oct 5 18:26 googleee78b20b75ffd653.html drwxrwxr-x 23 ec2-user root 20480 Oct 5 18:26 images drwxrwxr-x 2 ec2-user root 4096 Oct 5 18:26 includes -rx--x--x 1 ec2-user root 1956 Oct 5 18:59 index.php 

我的虚拟主机文件如下所示:(如上所述,我只想在su_php下的mywebsite.org.uk (&subdomains):

 <VirtualHost *:80> DocumentRoot "/var/www/html/www.mywebsite.org.uk/" ServerName www.mywebsite.org.uk ServerAlias mywebsite.org.uk ErrorLog "/var/www/html/logs/mywebsite.org.uk-error_log" CustomLog "/var/www/html/logs/mywebsite.org.uk-access_log" common suPHP_Engine on suPHP_UserGroup ec2-user ec2-user AddHandler x-httpd-php .php .php3 .php4 .php5 suPHP_AddHandler x-httpd-php </VirtualHost> 

任何帮助将非常感激!

我没有一个系统来检查这个,但我似乎记得从docroot下来的整个树必须由UID> min_uid拥有,所以如果你configuration

 docroot=/var/www 

那么(和/ var / www/... )中的目录需要正确configuration。