Mark,

It looks like your setting for $Conf{CgiImageDirURL} is wrong.  Your html
has hrefs like this:

href="/var/www/htdocs/BackupPC/image/favicon.ico


$Conf{CgiImageDirURL} should be set to the URL (eg: "/BackupPC/image"), not
the absolute file system path.

Craig

On Wed, Jun 13, 2018 at 5:27 AM, Mark Maciolek <m...@sr.unh.edu> wrote:

> hi,
>   Partially fixed. I put the correct BackupPC_Admin in place and the page
> loads, now just have to figure out why every image is 404.
>
> Mark
> > hi,
> >
> > First line:
> > #!/bin/perl
> > #=============================================================
> -*-perl-*-w
> > #
> >
> > selinux is in permissive mode
> >
> > manually run:
> >
> >
> > Content-Type: text/html; charset=utf-8
> >
> > <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
> > <html><head>
> > <title>BackupPC Server Status</title>
> > <link rel=stylesheet type="text/css"
> > href="/var/www/htdocs/BackupPC/image/BackupPC_stnd.css" title="CSSFile">
> > <link rel=icon href="/var/www/htdocs/BackupPC/image/favicon.ico"
> > type="image/x-icon">
> > <meta http-equiv="pragma" content="no-cache">
> > <script src="/var/www/htdocs/BackupPC/image/sorttable.js"></script>
> > </head><body
> > onLoad="document.getElementById('NavMenu').style.height=document.body.
> scrollHeight">
> >
> > <div id="navigation-container">
> >  Â Â Â Â Â Â Â  <div id="logo-container">
> >  Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  <a
> > href="https://backuppc.github.io/backuppc/";><img
> > src="/var/www/htdocs/BackupPC/image/logo.gif"></a>
> >  Â Â Â Â Â Â Â  </div>
> > <div class="NavMenu" id="NavMenu">
> > <h2 class="NavTitle">Hosts</h2>
> > <form action="" method="get">
> >  Â Â Â  <input type="text" name="host" size="14" maxlength="64">
> >  Â Â Â  <input type="hidden" name="action" value="hostInfo"><input
> > type="submit" value="Go" name="ignore">
> >  Â Â Â  </form>
> > <h2 class="NavTitle">Server</h2>
> > <a href="?action=status">Status</a>
> > <a href="?action=summary">Host Summary</a>
> > <a href="?action=view&type=docs">Documentation</a>
> > <a href="https://github.com/backuppc/backuppc/wiki";>Wiki</a>
> > <a href="https://backuppc.github.io/backuppc";>Homepage</a>
> > </div>
> > </div> <!-- end #navigation-container -->
> > <div id="Content">
> >  Â Â Â  <h1>BackupPC Server Status</h1>
> >
> >
> > <p>
> >  Â Â Â  <h2>Currently Running Jobs</h2>
> >
> > <p>
> > <table class="tableStnd" border cellspacing="1" cellpadding="3">
> > <tr class="tableheader"><td> Host </td>
> >  Â Â Â  <td> Type </td>
> >  Â Â Â  <td> User </td>
> >  Â Â Â  <td> Start Time </td>
> >  Â Â Â  <td> Command </td>
> >  Â Â Â  <td align="center"> PID </td>
> >  Â Â Â  <td align="center"> Xfer PID </td>
> >  Â Â Â  <td align="center"> Status </td>
> >  Â Â Â  <td align="center"> Count </td>
> >  Â Â Â  </tr>
> >
> > </table>
> >
> > <p>
> >
> >
> >  Â Â Â  <h2>Failures that need attention</h2>
> >
> > <p>
> > <table class="tableStnd" border cellspacing="1" cellpadding="3">
> > <tr class="tableheader"><td align="center"> Host </td>
> >  Â Â Â  <td align="center"> Type </td>
> >  Â Â Â  <td align="center"> User </td>
> >  Â Â Â  <td align="center"> Last Try </td>
> >  Â Â Â  <td align="center"> Details </td>
> >  Â Â Â  <td align="center"> Error Time </td>
> >  Â Â Â  <td> Last error (other than no ping) </td></tr>
> >
> > </table>
> >
> > </body></html>
> >
> > apache is running as backuppc user.
> >
> > Mark
> >
> >
> > On 6/12/2018 10:25 PM, Craig Barratt via BackupPC-users wrote:
> >> Some random questions:
> >>
> >> What's the very first line of BackupPC_Admin?
> >>
> >> Could this be some sort of selinux issue?
> >>
> >> What happens when you manually run BackupPC_Admin (as the backuppc
> >> user)?  What user is apache running as?
> >>
> >> Craig
> >>
> >> On Tue, Jun 12, 2018 at 7:17 PM, mlm <m...@sr.unh.edu
> >> <mailto:m...@sr.unh.edu>> wrote:
> >>
> >>
> >>
> >>     On 6/12/2018 8:10 PM, Holger Parplies wrote:
> >>
> >>         Hi,
> >>
> >>         mlm wrote on 2018-06-12 17:20:06 -0400 [[BackupPC-users]
> >>         backuppc 4.2.1 perl issue]:
> >>
> >>             [...]
> >>             New system running Scientific Linux 7.5, installed 4.2.1
> >>             from tar file
> >>
> >>             Global symbol "%In" requires explicit package name at
> >>             /usr/share/BackupPC/sbin/BackupPC_Admin line 90.
> >>             [...]
> >>             Bareword "BackupPC::CGI::Lib::NewRequest" not allowed
> >>             while "strict subs" in use at
> >>             /usr/share/BackupPC/sbin/BackupPC_Admin line 56.
> >>             [...]
> >>             Any suggestions on troubleshooting further?
> >>
> >>         what do the first few non-comment lines of your BackupPC_Admin
> >>         look like
> >>         (about 12, but I don't have 4.2.1 here right now, so that
> >>         might have changed;
> >>         up to the first "my" variable declaration)? It would seem that
> >> the
> >>         BackupPC::CGI::Lib module is not correctly imported. Is the
> >>         path in the
> >>         "use lib" pragma correct for your installation? What are the
> >>         permissions on
> >>         the library file and its parent directories?
> >>
> >>         What Perl version are you running ('perl -v')?
> >>
> >>         Regards,
> >>         Holger
> >>
> >>     hi
> >>     from BackupPC_Admin:
> >>
> >>     use strict;
> >>     no  utf8;
> >>     use CGI;
> >>     use CGI::Carp qw(fatalsToBrowser);
> >>     use lib "/usr/local/BackupPC/lib";
> >>
> >>     use BackupPC::Lib;
> >>     use BackupPC::CGI::Lib qw(:all);
> >>
> >>     BackupPC::CGI::Lib::NewRequest;
> >>
> >>     my %ActionDispatch = (
> >>     Â Â Â  "deleteBackup"Â Â Â Â Â Â Â Â Â Â Â Â Â Â  =>
> "DeleteBackup",
> >>
> >>     folders all owned by backupc:
> >>     s -al /usr/local/BackupPC/lib/BackupPC/
> >>     total 108
> >>     drwxr-xr-x. 8 backuppc backuppc   160 Jun 12 21:40 .
> >>     drwxr-xr-x. 4 backuppc backuppc    33 Jun 12 16:09 ..
> >>     drwxr-xr-x. 2 backuppc backuppc  4096 Jun 12 21:40 CGI
> >>     drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Config
> >>     -r--r--r--. 1 backuppc backuppc 13638 Jun 12 21:40 DirOps.pm
> >>     drwxr-xr-x. 2 backuppc backuppc   181 Jun 12 21:40 Lang
> >>     -r--r--r--. 1 backuppc backuppc 38786 Jun 12 21:40 Lib.pm
> >>     drwxr-xr-x. 2 backuppc backuppc    21 Jun 12 21:40 Storage
> >>     -r--r--r--. 1 backuppc backuppc  3014 Jun 12 21:40 Storage.pm
> >>     -r--r--r--. 1 backuppc backuppc 36631 Jun 12 21:40 View.pm
> >>     drwxr-xr-x. 2 backuppc backuppc   101 Jun 12 21:40 Xfer
> >>     -r--r--r--. 1 backuppc backuppc  5002 Jun 12 21:40 Xfer.pm
> >>     drwxr-xr-x. 2 backuppc backuppc    27 Jun 12 21:40 Zip
> >>
> >>
> >>     This is perl 5, version 16, subversion 3 (v5.16.3) built for
> >>     x86_64-linux-thread-multi
> >>     (with 33 registered patches, see perl -V for more detail)
> >>
> >>
> >>
> >>     ------------------------------------------------------------
> ------------------
> >>     Check out the vibrant tech community on one of the world's most
> >>     engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >>     _______________________________________________
> >>     BackupPC-users mailing list
> >>     BackupPC-users@lists.sourceforge.net
> >>     <mailto:BackupPC-users@lists.sourceforge.net>
> >>     List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> >>     <https://lists.sourceforge.net/lists/listinfo/backuppc-users>
> >>     Wiki: http://backuppc.wiki.sourceforge.net
> >>     <http://backuppc.wiki.sourceforge.net>
> >>     Project: http://backuppc.sourceforge.net/
> >>     <http://backuppc.sourceforge.net/>
> >>
> >>
> >>
> >>
> >> ------------------------------------------------------------
> ------------------
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >>
> >>
> >> _______________________________________________
> >> BackupPC-users mailing list
> >> BackupPC-users@lists.sourceforge.net
> >> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> >> Wiki:    http://backuppc.wiki.sourceforge.net
> >> Project: http://backuppc.sourceforge.net/
> >
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org!
> > http://sdm.link/slashdot_______________________________________________
> > BackupPC-users mailing list
> > BackupPC-users@lists.sourceforge.net
> > List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> > Wiki:    http://backuppc.wiki.sourceforge.net
> > Project: http://backuppc.sourceforge.net/
> >
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to