Re: [BackupPC-users] Uncle! Error: Unable to read config.pl orlanguage strings!!
Tim, I now can at least see the web interface. : ) Chmod -R backuppc:users /etc/BackupPC fixed my problem. Thank you. However, I have this error Error: Wrong user: my userid is 81, instead of 1000(backuppc) after logging. I know this was caused by using /etc/init.d/backuppc start. Is there anyway to run that as backuppc user? Thank you. Travis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 06, 2006 10:06 AM To: Travis Wu; [EMAIL PROTECTED]; backuppc-users@lists.sourceforge.net Subject: Re: [BackupPC-users] Uncle! Error: Unable to read config.pl orlanguage strings!! 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 apache4096 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 root393 Oct 5 14:24 .htaccess -rwxrwxrwx 1 apache apache 307 Oct 5 14:15 printenv.pl -rwsr-xr-x 1 backuppc users74 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]; backuppc-users@lists.sourceforge.net 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.
[BackupPC-users] Which version to use for new install
Hi folks, I'm currently having a lot of Aborted with signal PIPE errors. I really have no clue what's causing them. I'm only trying to backup 2 linux (K12LTSP) servers. I'm in the process of upgrading some hardware, shuffling the servers around, reinstalling everything, so I have a few questions about how best to proceed with a new, from the ground up Backuppc server. To be clear I'm reinstalling a FC based web server, a k12ltsp server and the backup server. So backup server and its clients will be fresh. So I find myself wondering. What's the best distro to put BackupPC on top of? It will be the only thing running on this box. Older hardware, PIII 500 MHz, 384 RAM. I'm only really used to Fedora. Will the latest Fedora Core, with a minimal install be OK? Are there any gotchas about which packages to install? Or a suggested methodology for installing stuff? Finally, what version of BackupPC would people recommend? It seems like the beta has some great new features, but I don't really need more, featurewise, than 2.1.2 offers, but I've been having all those errors with it. So, any thoughts about installing a brand new (on old recycled hardware) backuppc server would be appreciated. Thanks, ck - 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.phpp=sourceforgeCID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Which version to use for new install
Thanks a lot for the advice. I'll check out CentOS for sure. I've heard it mentioned a lot, but never looked into it for my purposes. ck ck wrote: So I find myself wondering. What's the best distro to put BackupPC on top of? It will be the only thing running on this box. Older hardware, PIII 500 MHz, 384 RAM. I'm only really used to Fedora. Will the latest Fedora Core, with a minimal install be OK? Are there any gotchas about which packages to install? Or a suggested methodology for installing stuff? If you want to build a server that you can leave running for a long time without having to upgrade the OS, I'd go with CentOS (http:// www.centos.org/) instead of Fedora. CentOS is a de-branded version of Red Hat Enterprise Linux (which in turn is based on Fedora Core), so you'll barely notice the difference, but CentOS has a much longer support cycle. The current release will receive security fixes till at least 2012 (and CentOS 5 will be released in a couple of months). No special recipe for the install, just follow the instructions on the site: http://backuppc.sourceforge.net/faq/BackupPC.html Nils Breunese. - 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.phpp=sourceforgeCID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Which version to use for new install
ck wrote: Thanks a lot for the advice. I'll check out CentOS for sure. I've heard it mentioned a lot, but never looked into it for my purposes. There's even a K12LTSP version that's based on CentOS instead of Fedora. Check the 'EL' directories at ftp://k12linux.mesd.k12.or.us/ pub/K12LTSP. K12LTSP 5.0 is currently not yet available in the EL flavor though Nils Breunese. - 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.phpp=sourceforgeCID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/