Sounds to me like you haven't got ExecCGI set for the options within the apache configurtation for directory /usr/share/backuppc/cgi-bin

David While BSc(Hons) CEng MBCS CITP

On 25/11/2020 15:30, Paul Leyland wrote:

I installed the apache2 and backuppc packages on a Ubuntu 20.04LTS system but can not use the CGI interface. No mater what I try, I invariably get a response:


  Forbidden

You don't have permission to access this resource.

------------------------------------------------------------------------
Apache/2.4.41 (Ubuntu) Server at ra.home.brnikat.com Port 80


The backuppc sofware seems to be running because

backuppc@ra:/usr/share/backuppc/bin$ ./BackupPC_serverMesg status info

generates plausible output.  It looks as if Apache was not configured properly by the installation procedure. Reading the Backuppc documentation has not proved enlightening.

I have created a /etc/backuppc/htpasswd which has passwords set both for my own username (pcl) and for backuppc.

The /var/log/access.log file contains lines such as

192.168.1.104 - - [25/Nov/2020:15:23:54 +0000] "GET /backuppc HTTP/1.1" 403 501 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.9) Gecko/20100101 Goanna/4.4 Firefox/68.9 PaleMoon/28.8.4"

with corresponding lines in error.log as

[Wed Nov 25 15:23:54.077976 2020] [authz_core:error] [pid 27014] [client 192.168.1.104:35534] AH01630: client denied by server configuration: /usr/share/backuppc/cgi-bin/

but I can not find anything wrong with the permissions of /usr/share/backuppc/cgi-bin/ or its contents:

root@ra:/var/log/apache2# ls -ld /usr/share/backuppc/cgi-bin/
drwxr-xr-x 2 root root 4096 Nov 25 15:02 /usr/share/backuppc/cgi-bin/
root@ra:/var/log/apache2# ls -ls /usr/share/backuppc/cgi-bin/
total 0
0 lrwxrwxrwx 1 root root  8 Nov 12  2019 image -> ../image
0 lrwxrwxrwx 1 root root 39 Nov 12  2019 index.cgi -> ../../../lib/backuppc/cgi-bin/index.cgi
root@ra:/var/log/apache2# ls -Lls /usr/share/backuppc/cgi-bin/
total 20
 4 drwxr-xr-x 2 root     root      4096 Nov 25 15:02 image
16 -rwsr-x--- 1 backuppc www-data 14488 Nov 12  2019 index.cgi

Have others seen this behaviour?  Does anyone know what might be wrong and would be willing to help me get things working?

Thanks,

    Paul



_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/


--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to