Jim McNamara wrote:


On 2/21/07, *Filipe* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:


    I've upgraded from 2.1.1 to 3.0.0 in a debian sarge, and some problems
    arise..
    First it was the error about the language, and resolved it by renaming
    /etc/backuppc and reinstalling the 3.0.0 version.


I saw the same problem in the same situation. In the Debian package, it looks for the configs in /etc/backuppc, but the 2.0.0 tarball looks to /etc/BackupPC. I symlinked them together.

    Then some errors appeared when backing up hosts, and the web interface
edit configuration does not work,

That is a permissions issue, and it is tied into the next problem as well. The user backuppc needs to be able to write in the /etc/BackupPC directory, and create subdirectories. In debian, the /etc/backuppc was installed as root:root, and to edit I switched the ownership to backuppc:www-data. Once backuppc is the owner of /etc/BackupPC, it will be able to write to the config files, and create/modify the individual pc configs in the subdirectory /etc/BackupPC/pc, which will be created the first time you modify a host's config.


    either manual incr/full backup button!
When I press them I get back to home page.

I saw the exact same thing. The problem was that the sticky bit on the BackupPC_Admin script in the cgi-bin had been altered. This page on the FAQ helped me sole it - http://backuppc.sourceforge.net/faq/debugCGI.html , specifically the section with the script. For Debian, perl usually isn't in /bin/perl, but rather /usr/bin/perl.

The BackupPC_Admin file needs to have these permissions on Debian, or it generally won't work, and cause exactly the problems you were seeing:

-r-sr-x---  1 backuppc www-data 3993 2007-02-12 15:57 BackupPC_Admin

The sticky must be set on execute as owner, backuppc or the failures will occur. Setting those permissions is covered both in the man page and on the FAQ I cited above.

I haven't solved yet the problem with the buttons and edit actions in cgi interface!
read that and it seems that every thing's ok
when I do the script file test I am prompted to download the script file, cut if I add the .cgi extension, it opens the file but gives the 500 Internal Server Error.
this does not happen with the printenv script ( with .cgi ext)

some important information that could help u identity the problem( if u need more files/dir say it plz):

[EMAIL PROTECTED]:/# ls -al /usr/share/backuppc/cgi-bin
total 24
drwxr-xr-x  2 root     root     4096 2007-03-05 12:06 .
drwxr-xr-x  7 root     root     4096 2006-07-07 18:02 ..
-rwsr-xr-x  1 backuppc www-data 3993 2007-02-14 20:00 BackupPC_Admin
lrwxrwxrwx  1 root     root        8 2006-09-20 20:32 image -> ../image
-rwsr-xr-x  1 backuppc backuppc 3925 2006-01-08 22:25 index.cgi
-rwxr-xr-x  1 backuppc www-data  268 2007-03-05 11:59 printenv.cgi
-rwxrwxr-x  1 backuppc www-data   69 2007-02-22 01:25 script.cgi

[EMAIL PROTECTED]:/# ls -al /etc/BackupPC/
total 172
drwxrwx---   3 backuppc www-data  4096 2007-02-26 09:19 .
drwxr-xr-x  65 root     root      4096 2007-02-16 14:37 ..
-rw-r-----   1 backuppc www-data   412 2007-03-05 15:04 apache.conf
-rw-r-----   1 backuppc www-data 77136 2007-03-05 14:38 config.pl
-rw-r-----   1 backuppc www-data 64544 2007-02-14 18:25 config.pl.pre-3.0.0
-rw-r-----   1 backuppc www-data  2518 2007-01-06 18:19 hosts
-rw-r-----   1 root     www-data     0 2006-07-07 18:03 htgroup
-rw-r-----   1 root     www-data    23 2006-09-08 18:00 htpasswd
drwxr-xr-x   2 backuppc www-data  4096 2007-03-02 18:43 pc



File: /etc/BackupPC/apache.conf

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

<Directory /usr/share/backuppc/cgi-bin/>
AllowOverride None $
       Options ExecCGI FollowSymlinks
       AddHandler cgi-script .cgi
       DirectoryIndex index.cgi

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

</Directory>





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to