Travis,

Here's some of what I did. One main thing was I set the directories pertaining
to BackupPC to be owned by BackupPC. 
chown backuppc:users -R *
drwxr-xr-x   6 backuppc users  4096 Oct  5 15:07 BackupPC
[EMAIL PROTECTED] cgi-bin]# ls -l /etc | grep Back
drwxrwxrwx   3 apache apache    4096 Oct  5 22:10 BackupPC
[EMAIL PROTECTED] cgi-bin]# ls -l /etc/BackupPC/
total 252
-rw-r--r--  1 backuppc users  75628 Oct  5 22:10 config.pl
-rw-r--r--  1 backuppc apache 75675 Oct  5 17:55 config.pl.old
-r--r--r--  1 backuppc users  75899 Oct  5 19:07 config.pl,v
-rw-r--r--  1 backuppc apache  2232 Oct  5 17:58 hosts
-rw-r--r--  1 apache   apache  2209 Oct  5 15:09 hosts.old
-rw-r--r--  1 backuppc apache     0 Oct  5 17:55 LOCK
drwxr-xr-x  2 backuppc users   4096 Oct  5 19:59 pc


Here I watch the backuppc log to see what errors arise:
[EMAIL PROTECTED] BackupPC]# pwd
/var/log/BackupPC
[EMAIL PROTECTED] BackupPC]# tail -f LOG


Here I watch the htpd log in another terminal:
[EMAIL PROTECTED] httpd]# pwd
/var/log/httpd
[EMAIL PROTECTED] httpd]# tail -f error_log

And here is my cgi-bin directory:
[EMAIL PROTECTED] cgi-bin]# ls -la
total 32
drwxrwxrwx   2 apache   apache 4096 Oct  5 15:37 .
drwxr-xr-x  20 apache   root   4096 Oct  5 12:55 ..
-r-sr-xr-x   1 backuppc users  3986 Oct  5 15:09 BackupPC_Admin
-r-xr-xr--   1 apache   apache 3986 Oct  5 15:11 BackupPC_Admin2
-rw-r--r--   1 root     root    393 Oct  5 14:24 .htaccess
-rwxrwxrwx   1 apache   apache  307 Oct  5 14:15 printenv.pl
-rwsr-xr-x   1 backuppc users    74 Oct  5 15:31 whoami.pl

Here's the .htaccess
[EMAIL PROTECTED] cgi-bin]# cat .htaccess
        AuthType Basic
        AuthName UserExists
        AuthUserFile /etc/httpd/conf/.htpasswd-allusers
        Satisfy All
#        Require file-owner
    require valid-user

#    AuthGroupFile /etc/httpd/conf/group    # <--- change path as needed
#    AuthUserFile /etc/http/conf/passwd     # <--- change path as needed
#    AuthType basic
#    AuthName "access"
#    require valid-user

And 
[EMAIL PROTECTED] cgi-bin]# cat /etc/httpd/conf/.htpasswd-allusers
backuppc:OhiHgkkxr4kwI
apache:VWEB1NdbJ5oVg
(I don't think apache needs to be in there)

Here is the Perl script "printenv.pl" as in the backuppc docs:
[EMAIL PROTECTED] cgi-bin]# cat printenv.pl
#!/usr/bin/perl
    ##
    ##  printenv -- demo CGI program which just prints its environment
    ##
    print "Content-type: text/plain\n\n";
    foreach $var (sort(keys(%ENV))) {
        $val = $ENV{$var};
        $val =~ s|\n|\\n|g;
        $val =~ s|"|\\"|g;
        print "${var}=\"${val}\"\n";
    }

[EMAIL PROTECTED] cgi-bin]# cat whoami.pl
#!/usr/bin/perl
    printf("My userid is $> (%s)\n", (getpwuid($>))[0]);

Hope these helps. Now I play with the wonderful world of rsync. :-)
Tim

--- Travis Wu <[EMAIL PROTECTED]> wrote:

> Hi, 
> 
> I have the same issue with my setup as well. 
> Tried your fix but it didn't work for me. 
> 
> Where else should I check? Please? 
> 
> Also , where is the getenv perl script that you are talking about? 
> 
> Thanks, 
> 
> Travis
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, October 05, 2006 4:23 PM
> To: [EMAIL PROTECTED]; [email protected]
> Subject: Re: [BackupPC-users] "Uncle!" Error: Unable to read config.pl
> orlanguage strings!!
> 
> 
> Did the ref count to ten yet? I guess crafting the email joggled my
> thought
> process.
> 
> Nix this:
> $Conf{CgiAdminUsers} = '*'
> 
> And enabled this:
> $Conf{CgiAdminUserGroup} = '';
> $Conf{CgiAdminUsers}     = 'backuppc';
> 
> Ahh, the humanity. Working now. Very nice.
> 
> TimJowers
> 
> 
> --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
> > 
> > Trying to install BackupPC-Beta1 and the cgi-bin just will not work.
> Can run
> > cgi-bin/BackupPC_Admin as backuppc and as apache (allowed apache login
> to
> > test
> > this). Do run the sample getenv perl script and see REMOTE_USER is
> backuppc.
> > But can never get past 
> > "Error: Unable to read config.pl or language strings!!"
> > 
> > SELinux is off. Tried reinstalling as backuppc (First created the
> directories
> > manually and assigned them to backuppc) but this also does not help.
> I'm not
> > a
> > Perl guru so any advice is appreciated.
> > 
> > Thanks,
> > TimJowers
> > http://www.serviza.com/ - Making Open Source work for business.
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> >
> ------------------------------------------------------------------------
> -
> > 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=DEVDE
> V
> > _______________________________________________
> > BackupPC-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/backuppc-users
> > http://backuppc.sourceforge.net/
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ------------------------------------------------------------------------
> -
> 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=DEVDE
> V
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
> 
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to