How can I get BackupPC Web Interface to work?

I am a Linux User and have been since the late 1990s

I have been using BackupPC for many years on various devices, either running Ubuntu in a QEMU VM or on Raspberry Pi5s

I have a new MiniPC running AlmaLinux 10 (whichis great!), so I decided to setup a VM on this machine running AlmaLinux 9 with BackupPC (It is not available in the repos for AlmaLinux 10) instead of Ubuntu for a change. I have to say I do like AlmaLinux 10 having used RHEL for several years.

I have had no problem getting BackupPC working, I can tell from the log.

But……. Can I get the Web GUI to work from my PC running Gentoo Linux on the same network. No I cannot.

Here is the original Apache Config file:

<DirectoryMatch /usr/(share|libexec)/BackupPC/>
# 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
#

AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"

<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require valid-user
<RequireAny>
Require local
</RequireAny>
</RequireAll>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
order deny,allow
deny from all
allow from all
allow from ::1
require valid-user
</IfModule>

</DirectoryMatch>


Alias /BackupPC/images /usr/share/BackupPC/html/
ScriptAlias /BackupPC /usr/libexec/BackupPC/BackupPC_Admin
ScriptAlias /backuppc /usr/libexec/BackupPC/BackupPC_Admin
So, I thought all I would need to do is change the Require local to Require all granted but that does not work.

I have setup the httpasswd.

Looking at the Journal and the access_log and error_log there are no errors or messages even setting the logging level for apache to debug.

I have even changed the apache user to backuppc and made sure the permissions on the web folders and config file are the same backluppc:apache

What should my Apache config file look like?

I rather think I will have to go back to Ubuntu, but I hate all the ‘cloud’ stuff and the like with that now.

Hello
Before digging deeper into the Apache config, could you first check whether SELinux is enabled on that AlmaLinux 9 VM?
You can confirm it with getenforce. Please let us know whether it returns Enforcing, Permissive, or Disabled.

I have it set to Permissive until I get everything working corectly

Hello

Since SELinux is already set to Permissive, SELinux is probably not the blocker here.

The next things I would check are Apache CGI handling, the ScriptAlias target, and the executable permissions on BackupPC_Admin.

Could you please check the following and share the output?

httpd -M | egrep ‘cgi|cgid|alias’
ls -l /usr/libexec/BackupPC/BackupPC_Admin
head -n 1 /usr/libexec/BackupPC/BackupPC_Admin

I suggested both because they test different paths.

curl -I http://localhost/BackupPC checks whether Apache/CGI works locally on the VM itself.

curl -I http:///BackupPC checks whether it still works through the server’s actual network interface.

If localhost works but does not, that points more to a listen/binding, firewall, or network-path issue than to BackupPC itself.

Well @redadmin after all these years!!

It was the Firewall. I mus be getting old…..

I am most grateful for you taking the time to send some VERY sensible checks.

1 Like