Apache/2.2.3
CentOS release 5.4 (Final)
BackupPC-3.1.0-6.el5
Hey,
So im setting up backuppc but do not want Apache to run as the backuppc user. To get round this I need to setup suEXEC so that CGI scripts are ran as the backuppc user.
This seems fine and I do have the module loaded, so...
1. I have configured my config files as said
here
2. I have read that DOC_ROOT for suEXEC is set to /var/www I need to change this to /home/www - as a quick fix i have a symbolic link from /var/www to /home/www
3. To confirm what DOC_ROOT is and check where the log file will be as suggested on many sites I run "/usr/sbin/suexec -V" but I get nothing back, it does not list any config
4. Group and Owner for "/usr/share/BackupPC" is backuppc
After all the above I get this error in my Apache logs...
Quote:
Premature end of script headers: BackupPC_Admin
|
Im a little lost at what to do next, im guessing suEXEC is not working due to the fact its pointing to the wrong home directory for websites - but why is "suexec -V" coming back empty so I cannot check the location of its log file - is this a larger issue?
Some direction would be apreshated.
BackupPC.conf
Code:
<Directory /usr/share/BackupPC/sbin/>
# BackupPC requires valid authentication in order for the web interface to
# function properly. One can view the web interface without authentication
# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#
Options +ExecCGI
order deny,allow
allow from all
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC
require valid-user
</Directory>
Alias /BackupPC/images /usr/share/BackupPC/html/
ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
httpd.conf - VirtualHost
Code:
<VirtualHost *:80>
ServerName <myserver>
DocumentRoot /usr/share/BackupPC/sbin
# run scripts in this vhost as this user/group
SuexecUserGroup backuppc backuppc
ScriptAlias /backuppc/cgi-bin/ /usr/share/BackupPC/bin
Alias /backuppc /usr/share/BackupPC/sbin
ErrorLog /home/www/logs/<myserver>.err
CustomLog /home/www/logs/<myserver>.log common
</VirtualHost>