Hi,

This is my first post, so first off thanks for a great tool!

FYI: I install backuppc on a Ubuntu system, as a debian package: its working
like a dream.
This time I've installed on a Suse 10 from source and its proved tricky.

This post is quite long: I've googled quite a bit before but not found the
answer, so I'm providing as much detail as possible.

The backuppc daemon runs, but I cannot get the web interface running, The
log entry in apache is:
    "Premature end of script headers: index.cgi"

It sounds like a perl issue to me?


I installed the perl modules, and perl configure.pl works fine.
some settings:
--> BackupPC should run as user [backuppc]?
--> Install directory (full path) [/opt/backuppc]?
--> Data directory (full path) [/disk2/backuppc]?
--> CGI bin directory (full path) [/opt/backuppc/cgi-bin/]?
--> Apache image directory (full path) [/opt/backuppc/images]?
--> URL for image directory (omit http://host; starts with '/') [/backuppc]?
...
Created /disk2/backuppc
Created /disk2/backuppc/pool
Created /disk2/backuppc/cpool
Created /disk2/backuppc/pc
Created /disk2/backuppc/trash
Created /etc/BackupPC
Created /var/log/BackupPC
Installing binaries in /opt/backuppc/bin
Installing library in /opt/backuppc/lib
Installing images in /opt/backuppc/images
Making init.d scripts
Installing docs in /opt/backuppc/doc
Installing config.pl and hosts in /etc/BackupPC
Installing cgi script BackupPC_Admin in /opt/backuppc/cgi-bin/


For apache, I created a /etc/apache2/conf.d/backuppc.conf
<Directory /opt/backuppc/cgi-bin/>
        AllowOverride None
        Options ExecCGI FollowSymlinks
        AddHandler cgi-script .cgi
        DirectoryIndex index.cgi
    Order allow,deny
    Allow from 10.2.2
</Directory>

In "/etc/apache2/default-server.conf"
SuexecUserGroup backuppc backuppc
(which solved suid errors)

Here are some file permissions, but I don't think it's the issue:
ls -altr /opt/backuppc
total 3
drwxr-xr-x  3 root     www    72 Sep  7 15:51 lib
drwxr-xr-x  2 backuppc www  1440 Sep  7 15:51 image
drwxr-xr-x  9 root     root  224 Sep  7 15:51 ..
drwxr-xr-x  8 root     www   192 Sep  7 17:15 .
drwxr-xr-x  2 backuppc www  1488 Sep  7 18:16 images
drwxr-xr-x  2 backuppc www   112 Sep  7 18:16 doc
drwxr-xr-x  2 backuppc www   136 Sep  7 18:16 cgi-bin
drwxr-xr-x  2 backuppc www   712 Sep  7 18:16 bin
host40:/opt/install/BackupPC-3.0.0 # ls -altr /opt/backuppc/cgi-bin/
total 8
lrwxrwxrwx  1 root     www    8 Sep  7 16:11 image -> ../image
drwxr-xr-x  8 root     www  192 Sep  7 17:15 ..
-rwsr-xr-x  1 backuppc www 3981 Sep  7 17:19 index.cgi
drwxr-xr-x  2 backuppc www  136 Sep  7 18:16 .

If I run /opt/backuppc/cgi-bin/index.cgi as root on the command line I get
the expected HTML output

But as the apache user nothing appears:
su wwwrun /opt/backuppc/cgi-bin/index.cgi

And the backuppc user doesn't like the first perl lines:
su backuppc /opt/backuppc/cgi-bin/index.cgi
/opt/backuppc/cgi-bin/index.cgi: line 48: use: command not found
/opt/backuppc/cgi-bin/index.cgi: line 49: no: command not found
/opt/backuppc/cgi-bin/index.cgi: line 50: use: command not found
/opt/backuppc/cgi-bin/index.cgi: line 51: syntax error near unexpected token
`('
/opt/backuppc/cgi-bin/index.cgi: line 51: `use CGI::Carp
qw(fatalsToBrowser);'


Any tips please?

Thanks,

Sean







-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to