LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-06-2009, 05:30 AM   #1
Laura_m
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
BackupPC and the Error 500


Hi all,

First of all, say that I'm a newbie and I don't have a good knowledge about backuppc and Linux in general.

I'm trying to install BackupPC in a RedHat machine. I downloaded the tar.gz file and use the "perl configure" command and everything looks fine. BackupPC seems to run correctly.

My problems come when I try to run the interface.
If I use Apache I got this error:

--------------------------
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: BackupPC_Admin.pl

If you think this is a server error, please contact the webmaster.
Error 500
--------------------------

If I use Lighttp I got a "500 - Internal Server Error". Reading the lighttpd error file it just says "Can't access() script".
I have a user called "backuppc". The file permissions look good to me (/srv/lighttpd/cgi-bin/):

-r-sr-xr-- 1 backuppc backuppc 3995 Oct 5 17:54 BackupPC_Admin.pl
-rwsr-xr-- 1 root root 3993 Oct 2 14:10 sample2.pl
-rw-r--r-- 1 root root 116 Oct 2 14:09 sample.pl

I can also run "sample.pl" and "sample2.pl" with no problems.

Does someone have a clue about what is happening?

Thank you.

ADITION:
I think it might be something with permissions... I've just add the user and group "backuppc" in the Lighttpd conf but now it doesn't start. I can't find the error log file either.

Last edited by Laura_m; 10-06-2009 at 06:44 AM.
 
Old 10-06-2009, 06:26 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
I have never tried installing BackupPC from source. I installed it from Synaptic. So I do not know if you need something else to configure.
But the permissions are granted to backuppc user but apache runs as httpd user.
Should not that user also have some permissions over it?
 
Old 10-06-2009, 06:52 AM   #3
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
If you are using the EPEL repo, you should be able to install it with nearly NO extra work via yum. "yum install backuppc" is almost all you have to do, literally. I've got some install notes at home on the one or two files you need to edit.

And I gotta throw this in there... I'm a true believer in BackupPC... it's awesome backup magic as far as I'm concerned.
 
Old 10-13-2009, 12:19 PM   #4
Laura_m
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
If you are using the EPEL repo, you should be able to install it with nearly NO extra work via yum. "yum install backuppc" is almost all you have to do, literally. I've got some install notes at home on the one or two files you need to edit.

And I gotta throw this in there... I'm a true believer in BackupPC... it's awesome backup magic as far as I'm concerned.
yum doesn't work on my machine. It ends with some cryptic error message.

Last edited by Laura_m; 10-13-2009 at 12:21 PM.
 
Old 10-13-2009, 12:21 PM   #5
Laura_m
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by linuxlover.chaitanya View Post
I have never tried installing BackupPC from source. I installed it from Synaptic. So I do not know if you need something else to configure.
But the permissions are granted to backuppc user but apache runs as httpd user.
Should not that user also have some permissions over it?
Yes, I guess is something to do about permissions... but I don't know what to do. The file owner is "backuppc". Apache runs as "apache".
I did some test and nothing worked - changing the owner, trying to run Apache as other user... etc. I don't know how to configure it : (

Thanks.
 
Old 10-13-2009, 08:45 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
yum doesn't work on my machine. It ends with some cryptic error message.
Perhaps you could show us
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backuppc configuration issue - see error bunadm Linux - Server 15 11-10-2009 10:32 AM
Error: Wrong user: my userid is 33, instead of 110(backuppc) atomiccomp Linux - Software 2 05-08-2009 08:23 AM
BackupPC Error: Unable to open/create XferLOG rkulp Linux - Server 1 05-12-2008 10:07 PM
BackupPC-3.1.0 Error kantijena Linux - Server 1 03-04-2008 05:00 AM
Additionally, a 500 Internal Server Error error was encountered while trying to use a ukrainet Linux - General 10 06-24-2005 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration