Claude,

I'm replying to the list and you direct to shorten the turn around time for my comments and your response.

I have version:
# httpd -v
Server version: Apache/2.4.37 (rocky)

 and an earlier version of 2.4 on my prior OS Scientific Linux 7.

On my system httpd.conf has owner/group/permissions:
  -rw-r--r-- 1 backuppc apache 11928 Sep 10 10:39 httpd.conf

See my further comments below starting with httpd.conf

On 11/17/21 22:20, Claude Gelinas wrote:
Hi,

in my /etc/httpd/conf/httpd.conf I have the following:

User backuppc
Group backuppc

I've tried

User apache
Group apache

but backuppc guy was not happy

with
I have the User and Group per below
User backuppc
Group apache
There are two other lines I've edited in httpd.conf

DocumentRoot "/usr/share/BackupPC/html"

and

  Options -Indexes +FollowSymLinks

please notice the "-" and "+" symbols as this differs from what I had for BackupPC 3.3

I'm still getting 504 error.

Onto BackupPC.conf
I overlooked the Alias section and there are some additional edits to be made there.
I've changed /etc/httpd/conf.d/BackupPC.conf like this:

<DirectoryMatch /usr/(share|libexec)/BackupPC/>
# <Directory       /usr/share/BackupPC/>

# BackupPC requires valid authentication in order for the web
interfaceto
# function properly.  One can view the web interface
withoutauthentication
# 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
     Require all granted
     </RequireAny>
   </RequireAll>
</IfModule>


<IfModule !mod_authz_core.c>
   # Apache 2.2
#  AllowOverride All
   order allow,deny
   deny from all
   allow from 127.0.0.1 192.168.xx.xx
   require valid-user
</IfModule>
</DirectoryMatch>
The ScriptAlias lines need to point to a different location:
ScriptAlias     /BackupPC      /usr/libexec/BackupPC/BackupPC_Admin ScriptAlias     /backuppc      /usr/libexec/BackupPC/BackupPC_Admin

Alias         /BackupPC/images       /usr/share/BackupPC/html/
ScriptAlias   /BackupPC             /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias   /backuppc             /usr/share/BackupPC/sbin/BackupPC_Admin
Delete the following Alias definition as it is causing one of the errors you noted below:
Alias           /BackupPC/html/          /usr/share/BackupPC/html/
I have no other comments so I hope this gets the GUI going for you.

JimK

the dir /etc/BackupPC is like this:
-rw-r--r--. 1 backuppc apache      47 16 jan  2017 apache.users
-rw-r--r--. 1 backuppc backuppc    45  4 avr  2015 backuppc.users
-rw-r-----. 1 backuppc apache   79912 14 nov 16:28 config.pl
-rw-r-----. 1 backuppc apache   80952 20 déc  2009 config.pl~
-rw-r-----. 1 backuppc apache   79231 16 déc  2018 config.pl.old
-rw-r-----. 1 backuppc apache   85115  4 jan  2015 config.pl.pre-3.3.0
-rw-r-----. 1 backuppc apache   79231 14 nov 16:28 config.pl.pre-4.4.0
-rw-r-----. 1 backuppc apache   84981 29 jui  2011 config.pl.rpmnew
-rw-r--r--. 1 backuppc apache   79936 14 nov 16:28 config.pl.sample
-rw-r-----. 1 backuppc apache    2570  4 sep  2019 hosts
-rw-r--r--. 1 backuppc apache    2209 25 sep  2009 hosts~
-rw-r-----. 1 backuppc apache    2552 16 déc  2018 hosts.old
-rw-r--r--. 1 backuppc apache    2214 29 jui  2011 hosts.rpmnew
-rw-r--r--. 1 backuppc apache    2214 14 nov 16:28 hosts.sample
-rw-r-----. 1 backuppc backuppc     0 17 nov 22:00 LOCK
drwxr-xr-x. 2 backuppc apache    4096 19 avr  2021 pc

dir /etc/httpd/conf.d is like this:
-rw-r--r--. 1 root     root     736  8 jun  2020 apcupsd.conf
-rw-r--r--. 1 root     root    2926 10 nov 09:26 autoindex.conf
-rw-r--r--. 1 backuppc apache  1076 17 nov 21:32 BackupPC.conf
-rw-r--r--. 1 backuppc apache  1410 17 jan  2017 BackupPC.conf~
-rw-r--r--. 1 backuppc apache  1188 16 jan  2017 BackupPC.conf.bak
-rw-r--r--. 1 root     root     286 17 mai  2020 nextcloud.conf
-rw-r--r--. 1 root     root     300 16 mai  2020 nextcloud.conf~
-rw-r--r--. 1 root     root     112 17 jan  2017 non-ssl.conf.bak
-rw-r--r--. 1 root     root     986 18 mai
2017owncloud-access.conf.avail
-rw-r--r--. 1 root     root     278 18 mai  2017 owncloud-auth-any.inc
-rw-r--r--. 1 root     root     313 18 mai  2017owncloud-auth-local.inc
-rw-r--r--. 1 root     root     263 18 mai  2017 owncloud-auth-none.inc
-rw-r--r--. 1 root     root    1867 18 mai  2017 owncloud.conf
-rw-r--r--. 1 root     root    2400 18 mai  2017 owncloud-defaults.inc
-rw-r--r--. 1 backuppc apache  1752  4 nov 2019 perl.conf

/etc/BackupPC/apache.users contain:
backuppc:$apr1$xOS1ZYx2$GcZ.....

In my httpd log I have this error:
The Alias directive in /etc/httpd/conf.d/BackupPC.conf at line 37 will
probably never match because it overlaps an earlier Alias.
The ScriptAlias directive in /etc/httpd/conf.d/BackupPC.conf at line 38
will probably never match because it overlaps an earlier ScriptAlias.
The ScriptAlias directive in /etc/httpd/conf.d/BackupPC.conf at line 39
will probably never match because it overlaps an earlier ScriptAlias.
The Alias directive in /etc/httpd/conf.d/BackupPC.conf at line 40 will
probably never match because it overlaps an earlier ScriptAlias.

line 37 to 40 are:
Alias         /BackupPC/images       /usr/share/BackupPC/html/
ScriptAlias   /BackupPC             /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias   /backuppc             /usr/share/BackupPC/sbin/BackupPC_Admin
Alias           /BackupPC/html/          /usr/share/BackupPC/html/

Claude

Le Wed, 17 Nov 2021 09:31:18 -0500
jbk<j...@kjkelra.com>  a écrit:


_______________________________________________
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