You are not logged in.
Hi,
I installed backuppc and lighttpd. I created log file and started. They are both running:
root@pinguinovolante /home/ambro # systemctl status lighttpd.service
● lighttpd.service - Lighttpd Web Server
Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; disabled; vendor pr
Active: active (running) since Tue 2016-12-27 23:57:42 CET; 3s ago
Main PID: 10128 (lighttpd-angel)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/lighttpd.service
├─10128 /usr/bin/lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf
└─10129 /usr/bin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
dic 27 23:57:42 pinguinovolante systemd[1]: Started Lighttpd Web Server.
and
root@pinguinovolante /home/ambro # systemctl status backuppc
● backuppc.service - BackupPC
Loaded: loaded (/usr/lib/systemd/system/backuppc.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2016-12-27 23:49:58 CET; 21min ago
Main PID: 8326 (BackupPC)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/backuppc.service
├─8326 /usr/bin/perl /usr/share/backuppc/bin/BackupPC
└─8334 /usr/bin/perl /usr/share/backuppc/bin/BackupPC_trashClean
dic 27 23:49:58 pinguinovolante systemd[1]: Started BackupPC.
I never used lighttpd before now so I don't have users for web pages like http
My /etc/lighttpd/lighttpd.conf is similar to the /etc/lighttpd/lighttpd.conf of wiki
root@pinguinovolante /home/ambro # cat /etc/lighttpd/lighttpd.conf
server.port = 81
server.username = "backuppc"
server.groupname = "backuppc"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
index-file.names = ( "index.html", "index.php", "index.cgi" )
mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => "image/jpeg", ".png" => "image/png", "" => "application/octet-stream" )
server.modules = ("mod_alias", "mod_cgi", "mod_auth", "mod_access" )
alias.url = ( "/BackupPC_Admin" => "/usr/share/backuppc/cgi-bin/BackupPC_Admin" )
alias.url += ( "/backuppc" => "/usr/share/backuppc/html" )
cgi.assign += ( ".cgi" => "/usr/bin/perl" )
cgi.assign += ( "BackupPC_Admin" => "/usr/bin/perl" )
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/passwd"
auth.require = ( "/BackupPC_Admin" => ( "method" => "basic", "realm" => "BackupPC", "require" => "user=admin" ) )
This is my /etc/lighttpd/passwd
root@pinguinovolante /home/ambro # cat /etc/lighttpd/passwd
admin:admin
When I try to connect with the admin page on http://localhost/BackupPC_Admin:81 my browser (firefox) give me "Unable to connect"
If I connect to the page http://localhost:81 my browser give me "Hello World" so I think lighttpd is working.... maybe.
Why I don't see my admin web page of backuppc?
Offline
You've got your port in the wrong place in that URL; it goes with the hostname, not the directory. It should be http://localhost:81/BackupPC_Admin.
Also, I don't think you need the cgi.assign line mapping BackupPC_Admin to perl unless you actually have files with extension BackupPC_Admin.
Offline
Thank you and excuse me for my mistake.
Now when I connect to http://localhost:81/BackupPC_Admin the browser ask for user and password.
I try my username or admin or root password but I'm not able to enter.
My config.pl is this:
root@pinguinovolante /home/ambro # cat /etc/backuppc/config.pl |grep AdminUser
$Conf{EMailAdminUserName} = 'backuppc';
# $Conf{CgiAdminUserGroup} and the manual list of users, separated
# by spaces, in $Conf{CgiAdminUsers}. If you don't want a group or
# $Conf{CgiAdminUsers} = '*'.
# $Conf{CgiAdminUserGroup} = 'admin';
# $Conf{CgiAdminUsers} = 'craig celia';
# $Conf{CgiAdminUserGroup} = '';
# $Conf{CgiAdminUsers} = 'craig celia';
$Conf{CgiAdminUserGroup} = 'backuppc';
$Conf{CgiAdminUsers} = 'ambro';
EMailAdminUserName => 1,
and my user is:
root@pinguinovolante /home/ambro # groups ambro
sys lp optical users vboxusers gaia adbusers lpadmin backuppc
What is the username and password that backuppc is asking me?
Thankyou
Offline