Thanks Dan,
I am using suexec to run the CGI scripts as user backuppc.
Here follows my backuppc.conf:
<VirtualHost *:47180>
ServerAdmin
webmaster@localhost
DocumentRoot /opt/backuppc/BackupPC
LogLevel trace1
ErrorLog
${APACHE_LOG_DIR}/error.log
CustomLog
${APACHE_LOG_DIR}/access.log combined
Alias /images
/opt/backuppc/BackupPC/images
<Directory
"/opt/backuppc/BackupPC/images">
Require all
granted
AllowOverride None
Order
allow,deny
allow from all
</Directory>
Alias /cgi-bin/
/opt/backuppc/BackupPC/cgi-bin/
SuexecUserGroup backuppc
users
<Directory "/opt/backuppc/BackupPC/cgi-bin">
Options +ExecCGI
SetHandler cgi-script
AuthType Basic
AuthName
"Authentication Required"
AuthUserFile
/opt/backuppc/BackupPC/.htpasswd
Require valid-user
Order deny,allow
</Directory>
</VirtualHost>
Problem *might* be only BackupPC_Admin script is in suexec
documentroot.
I was under assumption all other scripts were actually called by
BacupPC_Admin, is it so?
If not, what are the scripts that must be suid-backuppc?
In any cases: setting DATADIR as world-readable does *not* cure the
problem.
TiA
Mauro
Il 18/03/2016 15:50, Dan Pritts ha
scritto:
probably the web server
doesn't have the right permissions. see what user each is running
under. For simplest case, just make them both run under the same user
id. However, depending on what else you have running, that might or
might not be right for you.
As said (see below) I managed to get an apparently working
installation.
I sat up a test backup on localhost and manually started a backup.
Apparently everything was ok:
2016-03-18 09:44:29 full backup started for directory
/volume1/homes
2016-03-18 10:27:23 full backup 0 complete, 704991
files, 26858441879 bytes, 2019784 xferErrs (0 bad files, 0 bad shares,
2019784 other)
but the backup doesn't show up in "localhost HOME":
Host localhost Backup Summary
This PC has never been
backed up!!
Apparently the datadir has been populated with
something making sense
.../data/pc/localhost/0 exists and contains a
subdir "f%2fvolume1%2fhomes" which is consistent with
the requested
RsyncShareName(/volume1/homes).
The WEB GUI seems however unable
to see this backup.
Nothe that, in order to test, I changed just
the bare minimum: added host and then XferMethod, RsyncShareName and
RsyncClientPath (the
latter because rsync is in a non-standard
location on client)
What should I check?
Thanks in Advance
Mauro
Il 18/03/2016 03:07, Mauro Condarelli
ha scritto:
Thanks Dan,
after fiddling a bit with strace (available as option on my
synology) I found the problem.
Problem is I installed with "--no-fhs" and in this condition install
process (configure.pl) and Lib.pm completely disregard whatever I
define as confdir and force it to be "$topDir/conf" (see:
Lib.pm#126).
I see this as a bug.
Same behavior seems present in LogDir definition (next line).
Did I miss something?
What is the right way to report such bugs? (if this indeed is a
bug).
Thanks
Mauro
Il 17/03/2016 17:54, Dan Pritts ha
scritto: