Backuppc Ubuntu 8.04

Discussion in 'HOWTO-Related Questions' started by rtacconi, May 20, 2008.

  1. rtacconi

    rtacconi New Member

    Hi,

    I am following this tutorial http://www.howtoforge.com/linux_backuppc. I am trying to install backuppc on Ubuntu 8.04 desktop. I have tried this command: dpkg-reconfigure backuppc without any result. When I try to access http://host.domain.tld I get 404 not found. It seems to me that apache2 is not configured to use the backuppc directory.

    Any help? Thanks.
     
    Last edited: May 21, 2008
  2. rtacconi

    rtacconi New Member

    apache2 site

    I think I have to set the apache2 web server by hand :) However the installer does not work.
     
  3. rtacconi

    rtacconi New Member

    The solution

    This package was missing: libapache2-mod-perl2

    Run:
    Then:
    Select "Apache2", "Ok" then if you want to change the password:
    Done!
     
  4. phreon

    phreon New Member

    re: Ubuntu Server 8.04 Problem

    Hi,
    I downloaded the patch and then restarted backuppc. I still could not get to backuppc through the browser. I restarted backuppc and tried selecting apche2, apache-ssl, apache-perl, and apache from the menu. Nothing ... I then ps -aux to make sure backuppc was running. My browser window returns the error "The requested URL /backuppc/ was not found on this server."

    Looks like I am getting to the server, but not to backuppc.
    Any ideas what I can check?

    Thanks
    P

    By the way I am about a month on Ubuntu Linux. Be gentle.
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Is this still the default Apache configuration, or did you modify it?

    Have you tried
    Code:
    dpkg-reconfigure backuppc
    ?
     
  6. phreon

    phreon New Member

    Hi,
    Thanks for the quick reply.

    It looks like Apache2 is running. Yes I tried dpkg-reconfigure backuppc.
    I have not done anything to Apache2. I wouldn't know what to do. I have only done exactly what the post suggested and I have only installed what the tutorial "www.howtoforge.com/linux_backuppc" suggested, i.e. "apt-get install backuppc rsync libfile-rsyncp-perl par2 smbfs".

    I can get to my server from Firefox, but not to backuppc.

    Is there something I can check?
    Thanks
    P
     
  7. phreon

    phreon New Member

    I reread my last post and it is not clear what I meant.

    Apache2 is running on the Ubuntu 8.04 server. I have not tried to configure it.

    Backuppc is running on the server. I did try, dpkg-reconfigure backuppc on the server.

    From a Ubuntu client computer my I can get to the server by using its address. ie http://192.168.2.10.

    I have not modified any config files but I did change my password through, htpasswd /etc/backuppc/htpasswd backuppc.

    There is no windows or GUI installed on the server. I run it headless.

    What can I check to find out why I cant get the backuppc login in my browser?

    Thanks again for any help you can provide.
    P
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Is there a backuppc folder in /usr/share?
     
  9. phreon

    phreon New Member

    Hi Falco,

    Yes there is a backuppc folder in /usr/share.
    In it is ...
    bin cgi-bin doc image lib

    Thanks
    P
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Is there something in there (or in the subfolders) that looks like an Apache configuration?
     
  11. phreon

    phreon New Member

    I looked in each subdirectory and saw nothing that looked like apache.

    I am guessing that this means I need to configure Apache somehow.

    In my browser window when I try to get to backuppc I get an error with a reference to Apache ...

    Not Found

    The requested URL /backuppc was not found on this server.
    Apache/2.2.8 (Ubuntu) mod_perl/2.0.3 Perl/v5.8.8 Server at 192.168.2.10 Port 80

    Thanks
    P
     
    Last edited: Dec 25, 2008
  12. falko

    falko Super Moderator ISPConfig Developer

    Is there something in /etc/apache2 and its subdirectories that looks as if it belongs to BackupPC?
     
  13. phreon

    phreon New Member

    I checked in /etc/apache2 and in the subdirectories. There are no backuppc like files or directories.

    /etc/apache2$ ls
    apache2.conf envvars mods-available ports.conf sites-enabled
    conf.d httpd.conf mods-enabled sites-available
     
  14. falko

    falko Super Moderator ISPConfig Developer

    And what's the output of
    Code:
    ls -la /var/www
    ?
     
  15. phreon

    phreon New Member

    the output of ls -la /var/www is ...


    P@ubuntuServer:~$ ls -la /var/www
    total 12
    drwxr-xr-x 2 root root 4096 2008-12-22 14:10 .
    drwxr-xr-x 14 root root 4096 2008-12-22 14:10 ..
    -rw-r--r-- 1 root root 45 2008-12-22 14:10 index.html

    Thanks for staying with me on this.
    P
     
  16. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    updatedb
    locate backuppc
    locate BackupPC
    ?
     
  17. phreon

    phreon New Member

    Output of locate backuppc ....

    P@ubuntuServer:~$ locate backuppc
    /etc/backuppc
    /etc/backuppc/apache.conf
    /etc/backuppc/config.pl
    /etc/backuppc/hosts
    /etc/backuppc/htgroup
    /etc/backuppc/htpasswd
    /etc/backuppc/localhost.pl
    /etc/init.d/backuppc
    /etc/rc1.d/K20backuppc
    /etc/rc2.d/S20backuppc
    /etc/rc3.d/S20backuppc
    /etc/rc4.d/S20backuppc
    /etc/rc5.d/S20backuppc
    /usr/share/backuppc
    /usr/share/backuppc/bin
    /usr/share/backuppc/cgi-bin
    /usr/share/backuppc/doc
    /usr/share/backuppc/image
    /usr/share/backuppc/lib
    /usr/share/backuppc/bin/BackupPC
    /usr/share/backuppc/bin/BackupPC_archive
    /usr/share/backuppc/bin/BackupPC_archiveHost
    /usr/share/backuppc/bin/BackupPC_attribPrint
    /usr/share/backuppc/bin/BackupPC_compressPool
    /usr/share/backuppc/bin/BackupPC_dump
    /usr/share/backuppc/bin/BackupPC_fixupBackupSummary
    /usr/share/backuppc/bin/BackupPC_link
    /usr/share/backuppc/bin/BackupPC_nightly
    /usr/share/backuppc/bin/BackupPC_restore
    /usr/share/backuppc/bin/BackupPC_sendEmail
    /usr/share/backuppc/bin/BackupPC_serverMesg
    /usr/share/backuppc/bin/BackupPC_tarCreate
    /usr/share/backuppc/bin/BackupPC_tarExtract
    /usr/share/backuppc/bin/BackupPC_tarPCCopy
    /usr/share/backuppc/bin/BackupPC_trashClean
    /usr/share/backuppc/bin/BackupPC_zcat
    /usr/share/backuppc/bin/BackupPC_zipCreate
    /usr/share/backuppc/cgi-bin/image
    /usr/share/backuppc/cgi-bin/index.cgi
    /usr/share/backuppc/image/0000000.gif
    /usr/share/backuppc/image/0000011.gif
    /usr/share/backuppc/image/0001000.gif
    /usr/share/backuppc/image/0010000.gif
    /usr/share/backuppc/image/0010001.gif
    /usr/share/backuppc/image/0011000.gif
    /usr/share/backuppc/image/0011001.gif
    /usr/share/backuppc/image/1000000.gif
    /usr/share/backuppc/image/1000100.gif
    /usr/share/backuppc/image/1001000.gif
    /usr/share/backuppc/image/1001100.gif
    /usr/share/backuppc/image/1010000.gif
    /usr/share/backuppc/image/1010001.gif
    /usr/share/backuppc/image/1011000.gif
    /usr/share/backuppc/image/1100000.gif
    /usr/share/backuppc/image/1100100.gif
    /usr/share/backuppc/image/1100101.gif
    /usr/share/backuppc/image/1100110.gif
    /usr/share/backuppc/image/1100111.gif
    /usr/share/backuppc/image/1101000.gif
    /usr/share/backuppc/image/1101100.gif
    /usr/share/backuppc/image/1101101.gif
    /usr/share/backuppc/image/1101110.gif
    /usr/share/backuppc/image/1101111.gif
    /usr/share/backuppc/image/1110000.gif
    /usr/share/backuppc/image/1110001.gif
    /usr/share/backuppc/image/1110100.gif
    /usr/share/backuppc/image/1110101.gif
    /usr/share/backuppc/image/1110110.gif
    /usr/share/backuppc/image/1110111.gif
    /usr/share/backuppc/image/1111000.gif
    /usr/share/backuppc/image/1111001.gif
    /usr/share/backuppc/image/1111100.gif
    /usr/share/backuppc/image/1111101.gif
    /usr/share/backuppc/image/1111110.gif
    /usr/share/backuppc/image/1111111.gif
    /usr/share/backuppc/image/BackupPC_stnd.css
    /usr/share/backuppc/image/BackupPC_stnd_orig.css
    /usr/share/backuppc/image/icon-dir.png
    /usr/share/backuppc/image/icon-file.png
    /usr/share/backuppc/image/icon-hardlink.png
    /usr/share/backuppc/image/icon-symlink.png
    /usr/share/backuppc/image/logo.gif
    /usr/share/backuppc/lib/BackupPC
    /usr/share/backuppc/lib/BackupPC/Attrib.pm
    /usr/share/backuppc/lib/BackupPC/CGI
    /usr/share/backuppc/lib/BackupPC/Config
    /usr/share/backuppc/lib/BackupPC/Config.pm
    /usr/share/backuppc/lib/BackupPC/FileZIO.pm
    /usr/share/backuppc/lib/BackupPC/Lang
    /usr/share/backuppc/lib/BackupPC/Lib.pm
    /usr/share/backuppc/lib/BackupPC/PoolWrite.pm
    /usr/share/backuppc/lib/BackupPC/Storage
    /usr/share/backuppc/lib/BackupPC/Storage.pm
    /usr/share/backuppc/lib/BackupPC/View.pm
    /usr/share/backuppc/lib/BackupPC/Xfer
    /usr/share/backuppc/lib/BackupPC/Zip
    /usr/share/backuppc/lib/BackupPC/CGI/AdminOptions.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Archive.pm
    /usr/share/backuppc/lib/BackupPC/CGI/ArchiveInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Browse.pm
    /usr/share/backuppc/lib/BackupPC/CGI/DirHistory.pm
    /usr/share/backuppc/lib/BackupPC/CGI/EditConfig.pm
    /usr/share/backuppc/lib/BackupPC/CGI/EmailSummary.pm
    /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/HostInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/LOGlist.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Queue.pm
    /usr/share/backuppc/lib/BackupPC/CGI/RSS.pm
    /usr/share/backuppc/lib/BackupPC/CGI/ReloadServer.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Restore.pm
    /usr/share/backuppc/lib/BackupPC/CGI/RestoreFile.pm
    /usr/share/backuppc/lib/BackupPC/CGI/RestoreInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/StartServer.pm
    /usr/share/backuppc/lib/BackupPC/CGI/StartStopBackup.pm
    /usr/share/backuppc/lib/BackupPC/CGI/StopServer.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Summary.pm
    /usr/share/backuppc/lib/BackupPC/CGI/View.pm
    /usr/share/backuppc/lib/BackupPC/Config/Meta.pm
    /usr/share/backuppc/lib/BackupPC/Lang/de.pm
    /usr/share/backuppc/lib/BackupPC/Lang/en.pm
    /usr/share/backuppc/lib/BackupPC/Lang/es.pm
    /usr/share/backuppc/lib/BackupPC/Lang/fr.pm
    /usr/share/backuppc/lib/BackupPC/Lang/it.pm
    /usr/share/backuppc/lib/BackupPC/Lang/nl.pm
    /usr/share/backuppc/lib/BackupPC/Lang/pt_br.pm
    /usr/share/backuppc/lib/BackupPC/Storage/Text.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Archive.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/BackupPCd.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Rsync.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/RsyncDigest.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/RsyncFileIO.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Smb.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Tar.pm
    /usr/share/backuppc/lib/BackupPC/Zip/FileMember.pm
    /usr/share/doc/backuppc
    /usr/share/doc/backuppc/BackupPC.html
    /usr/share/doc/backuppc/BackupPC.pod.gz
    /usr/share/doc/backuppc/README.Debian
    /usr/share/doc/backuppc/README.gz
    /usr/share/doc/backuppc/changelog.Debian.gz
    /usr/share/doc/backuppc/changelog.gz
    /usr/share/doc/backuppc/copyright
    /usr/share/doc/backuppc/examples
    /usr/share/doc/backuppc/examples/localhost.pl
    /usr/share/doc/backuppc/examples/mysql.pl
    /usr/share/doc/backuppc/examples/rsyncd.pl
    /usr/share/doc/backuppc/examples/rsyncssh.pl
    /usr/share/doc/backuppc/examples/smb.pl
    /usr/share/doc/backuppc/examples/tarssh-sudo.pl
    /usr/share/doc/backuppc/examples/tarssh.pl
    /usr/share/doc-base/backuppc
    /usr/share/man/man8/backuppc.8.gz
    /usr/share/menu/backuppc
    /var/cache/apt/archives/backuppc_3.0.0-4ubuntu1_all.deb
    /var/lib/backuppc
    /var/lib/dpkg/info/backuppc.conffiles
    /var/lib/dpkg/info/backuppc.config
    /var/lib/dpkg/info/backuppc.list
    /var/lib/dpkg/info/backuppc.md5sums
    /var/lib/dpkg/info/backuppc.postinst
    /var/lib/dpkg/info/backuppc.postrm
    /var/lib/dpkg/info/backuppc.prerm
    /var/lib/dpkg/info/backuppc.templates

    Ouput of locate BackupPC

    P@ubuntuServer:~$ locate BackupPC
    /usr/share/backuppc/bin/BackupPC
    /usr/share/backuppc/bin/BackupPC_archive
    /usr/share/backuppc/bin/BackupPC_archiveHost
    /usr/share/backuppc/bin/BackupPC_attribPrint
    /usr/share/backuppc/bin/BackupPC_compressPool
    /usr/share/backuppc/bin/BackupPC_dump
    /usr/share/backuppc/bin/BackupPC_fixupBackupSummary
    /usr/share/backuppc/bin/BackupPC_link
    /usr/share/backuppc/bin/BackupPC_nightly
    /usr/share/backuppc/bin/BackupPC_restore
    /usr/share/backuppc/bin/BackupPC_sendEmail
    /usr/share/backuppc/bin/BackupPC_serverMesg
    /usr/share/backuppc/bin/BackupPC_tarCreate
    /usr/share/backuppc/bin/BackupPC_tarExtract
    /usr/share/backuppc/bin/BackupPC_tarPCCopy
    /usr/share/backuppc/bin/BackupPC_trashClean
    /usr/share/backuppc/bin/BackupPC_zcat
    /usr/share/backuppc/bin/BackupPC_zipCreate
    /usr/share/backuppc/image/BackupPC_stnd.css
    /usr/share/backuppc/image/BackupPC_stnd_orig.css
    /usr/share/backuppc/lib/BackupPC
    /usr/share/backuppc/lib/BackupPC/Attrib.pm
    /usr/share/backuppc/lib/BackupPC/CGI
    /usr/share/backuppc/lib/BackupPC/Config
    /usr/share/backuppc/lib/BackupPC/Config.pm
    /usr/share/backuppc/lib/BackupPC/FileZIO.pm
    /usr/share/backuppc/lib/BackupPC/Lang
    /usr/share/backuppc/lib/BackupPC/Lib.pm
    /usr/share/backuppc/lib/BackupPC/PoolWrite.pm
    /usr/share/backuppc/lib/BackupPC/Storage
    /usr/share/backuppc/lib/BackupPC/Storage.pm
    /usr/share/backuppc/lib/BackupPC/View.pm
    /usr/share/backuppc/lib/BackupPC/Xfer
    /usr/share/backuppc/lib/BackupPC/Zip
    /usr/share/backuppc/lib/BackupPC/CGI/AdminOptions.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Archive.pm
    /usr/share/backuppc/lib/BackupPC/CGI/ArchiveInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Browse.pm
    /usr/share/backuppc/lib/BackupPC/CGI/DirHistory.pm
    /usr/share/backuppc/lib/BackupPC/CGI/EditConfig.pm
    /usr/share/backuppc/lib/BackupPC/CGI/EmailSummary.pm
    /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/HostInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/LOGlist.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Queue.pm
    /usr/share/backuppc/lib/BackupPC/CGI/RSS.pm
    /usr/share/backuppc/lib/BackupPC/CGI/ReloadServer.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Restore.pm
    /usr/share/backuppc/lib/BackupPC/CGI/RestoreFile.pm
    /usr/share/backuppc/lib/BackupPC/CGI/RestoreInfo.pm
    /usr/share/backuppc/lib/BackupPC/CGI/StartServer.pm
    /usr/share/backuppc/lib/BackupPC/CGI/StartStopBackup.pm
    /usr/share/backuppc/lib/BackupPC/CGI/StopServer.pm
    /usr/share/backuppc/lib/BackupPC/CGI/Summary.pm
    /usr/share/backuppc/lib/BackupPC/CGI/View.pm
    /usr/share/backuppc/lib/BackupPC/Config/Meta.pm
    /usr/share/backuppc/lib/BackupPC/Lang/de.pm
    /usr/share/backuppc/lib/BackupPC/Lang/en.pm
    /usr/share/backuppc/lib/BackupPC/Lang/es.pm
    /usr/share/backuppc/lib/BackupPC/Lang/fr.pm
    /usr/share/backuppc/lib/BackupPC/Lang/it.pm
    /usr/share/backuppc/lib/BackupPC/Lang/nl.pm
    /usr/share/backuppc/lib/BackupPC/Lang/pt_br.pm
    /usr/share/backuppc/lib/BackupPC/Storage/Text.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Archive.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/BackupPCd.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Rsync.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/RsyncDigest.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/RsyncFileIO.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Smb.pm
    /usr/share/backuppc/lib/BackupPC/Xfer/Tar.pm
    /usr/share/backuppc/lib/BackupPC/Zip/FileMember.pm
    /usr/share/doc/backuppc/BackupPC.html
    /usr/share/doc/backuppc/BackupPC.pod.gz

    Thanks
    P
     
    Last edited: Dec 28, 2008
  18. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/backuppc/apache.conf?
     
  19. phreon

    phreon New Member

    Using Nano ...

    P@ubuntuServer:/etc/backuppc$ nano 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>


    Thanks
    P
     
  20. falko

    falko Super Moderator ISPConfig Developer

    Can you copy that to /etc/apache2/sites-available/default (to the <Virtualhost></Virtualhost> container)? Restart Apache afterwards.
     

Share This Page