Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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.
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 : (
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.