I have a number of vhosts configured with SuexecUserGroup
to run the scripts with limited privileges and the dept. web-site on one
of them. The problem is the webmaster can't read online context help
which comes with the cms the site is using. Most help files (>2K) have
*.php.html extension. *.php and *.html scripts both work as I suspect
they should, but when it comes to *.php.html suexec starts complaining
(most regular files are 0660 and the webmaster is a member of the
group):
directory is writable by others
file is writable by others
file has no execute permission
and finally after fixing all the above
/var/log/httpd/suexec.log:
uid: (10003/web6_www) gid: (10006/10006) cmd: *.php.html
/var/www/web6/log/error.log:
Premature end of script headers: *.php.html
Anybody has a clue how to fix this either in vhost config or any other
way around?
Thanks
<VirtualHost 172.31.0.31:80>
SuexecUserGroup web6_www web6
ServerName www.example.com:80
ServerAdmin webmaster at example.com
DocumentRoot /var/www/web6/web
ServerAlias example.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4
index.php3 index.shtml index.cgi index.pl index.jsp Default.htm
default.htm
ErrorLog /var/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Directory /var/www/web6/web>
Options +ExecCGI
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper "/var/www/web6/php/php-cgi -c /var/www/web6/php" .php
</Directory>
Alias /error/ "/var/www/web6/web/error/"
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
</VirtualHost>