BackupPC-users

[BackupPC-users] /usr/share/backuppc/cgi-bin/BackupPC_Admin does not exist

2010-10-20 19:17:16
Subject: [BackupPC-users] /usr/share/backuppc/cgi-bin/BackupPC_Admin does not exist
From: friedmann <backuppc-forum AT backupcentral DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Wed, 20 Oct 2010 19:15:13 -0400
I think i have understand some more things about how all these things work... 
but still i did not 

1 - My /usr/share/backuppc/cgi-bin/BackupPC_Admin file is replaced by 
/usr/share/backuppc/cgi-bin/index.cgi in my configuration 

2 - I tried cp /usr/share/backuppc/cgi-bin/index.cgi /var/www/cgi-bin/
This seems to be a part of the solution, but not all of it

When i type http://127.0.0.1/backuppc/index.cgi on the browser of any user 
machine, i get " firefox cannot connect to server 127.0.0.1" (approx 
translation)
I should precise that i do everything within a lan, through a router.

I am really not a specialist in apache service configuration, where could the 
problem come from ? Here are some -more- specific questions :


1-I have these lines both in /etc/apache2/apache2.conf and 
/etc/apache2/conf.d/backuppc.conf 

Alias /backuppc /usr/share/backuppc/cgi-bin/

<Directory /usr/share/backuppc/cgi-bin/>
&nbsp; &nbsp;AllowOverride None
&nbsp; &nbsp;Allow from all

&nbsp; &nbsp; &nbsp; &nbsp; # Uncomment the line below to ensure that nobody 
can sniff importanti
&nbsp; &nbsp; &nbsp; &nbsp; # info from network traffic during editing of the 
BackupPC config or
&nbsp; &nbsp; &nbsp; &nbsp; # when browsing/restoring backups.
&nbsp; &nbsp; &nbsp; &nbsp; # Requires that you have your webserver set up for 
SSL &#40;https&#41; access.
&nbsp; &nbsp; &nbsp; &nbsp; #SSLRequireSSL
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;Options ExecCGI FollowSymlinks
&nbsp; &nbsp;AddHandler cgi-script .cgi
&nbsp; &nbsp;DirectoryIndex index.cgi

&nbsp; &nbsp;AuthGroupFile /etc/backuppc/htgroup
&nbsp; &nbsp; &nbsp; &nbsp;AuthUserFile /etc/backuppc/htpasswd
&nbsp; &nbsp;AuthType basic
&nbsp; &nbsp;AuthName "BackupPC admin"
&nbsp; &nbsp;require valid-user

</Directory>

Hence, i have the following when i restart apache2 : 
root@ubuntuBackup&#58;/home/backupadmin# /etc/init.d/apache2 restart
&nbsp;* Restarting web server apache2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;Thu Oct 21 01&#58;02&#58;54 2010&#93; 
&#91;warn&#93; The Alias directive in /etc/apache2/apache2.conf at line 237 
will probably never match because it overlaps an earlier Alias.
&nbsp;... waiting .&#91;Thu Oct 21 01&#58;02&#58;56 2010&#93; &#91;warn&#93; 
The Alias directive in /etc/apache2/apache2.conf at line 237 will probably 
never match because it overlaps an earlier Alias.
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &#91; OK &#93;


Is there a problem with that ? or is it normal ?

2-according to the documentation, i should "setuid" my backupPC_Admin script 
---> Are my permissions on index.cgi ok ?

ls -l /usr/share/backuppc/cgi-bin/index.cgi 
-rwsr-x--- 1 backuppc www-data 3993 2009-12-18 16&#58;51 
/usr/share/backuppc/cgi-bin/index.cgi


3-According to the documentation, i should "create a .htaccess file in the 
cgi-bin directory" ---> I created a .htaccess file in 
/usr/share/backuppc/cgi-bin/ with the following paths for authGroupFile and 
AuthUserFile (some kind of random choice ...). Is there sopmething wrong with 
that ?

AuthGroupFile /etc/backuppc/htgroup&nbsp; &nbsp; # <--- change path as needed
AuthUserFile /etc/backuppc/htpasswd&nbsp; &nbsp; &nbsp;# <--- change path as 
needed
AuthType basic
AuthName "access"
require valid-user

I copied  /usr/share/backuppc/cgi-bin/ in /var/www/cgi-bin/ so that :

root@ubuntuBackup&#58;/home/backupadmin# ls -l -all /var/www/cgi-bin/
total 16
drwxr-xr-x 2 root root 4096 2010-10-21 01&#58;00 .
drwxr-xr-x 3 root root 4096 2010-10-21 00&#58;44 ..
-rw-r--r-- 1 root root&nbsp; 189 2010-10-21 01&#58;00 .htaccess
lrwxrwxrwx 1 root root&nbsp; &nbsp; 8 2010-10-21 01&#58;00 image -> ../image
-rwxr-x--- 1 root root 3993 2010-10-21 01&#58;00 index.cgi


4-what file should i have in /var/www/ (i use my apache server only for 
backuppc) ?
5-should i configure something, maybe firewall, on my user machines ?
6-Is there something to deal with the router configuration ?

What is wrong ? I have the feeling that the best i can is not enough tonight  
:( 
Help, please.

+----------------------------------------------------------------------
|This was sent by alefriedx AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>