LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-09-2008, 04:44 PM   #1
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Rep: Reputation: 15
backuppc "Error: Unable to read config.pl or language strings!!"


I have been trying to get backuppc working for a few days now and it just won't seem to work!

I am running Ubuntu 8.04 and installed it using apt-get and went through all the install process fine.

When I try and get to the web admin page I get this error which is really getting to me now.

I have run the following command and still no luck!

Code:
sudo chmod 777 -R /etc/backuppc/

Please help!
 
Old 06-14-2008, 06:05 PM   #2
ThorstenW
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Backuppc "Unable to read config.pl" problem

Hi neilneil2000,

did you try something like:
perl /usr/share/backuppc/cgi-bin/index.cgi > /tmp/test.html
as the apache user?

In my case this returned some perl error like "Insecure directory in $ENV{PATH}... config.pl line 46". This error most likely means that one folder in the path set in the config.pl is world writable. In my case the problem was solved by setting the permissions of the /bin directory wright (for some reasosn the bin directory on my nas was world-writable).

Hope I could help,

Thorsten
 
Old 06-16-2008, 05:58 PM   #3
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks for your response. I have tried running

Code:
perl /etc/backuppc/config.pl > /tmp/test.html
but I don't get any output. My guess is because the page requires authentication.

Any ideas?
 
Old 06-16-2008, 06:01 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Is the path to the cgi script configured in apache to be executable? If so, did you restart apache after making such changes?
 
Old 06-16-2008, 06:07 PM   #5
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Original Poster
Rep: Reputation: 15
I have solved the problem!!!

I looked in
Code:
/var/log/apache2/error.log
and saw the aforementioned

Code:
Couldn't execute /etc/backuppc/config.pl: Insecure directory in $ENV{PATH} while running setuid at /etc/backuppc/config.pl line 46.
I then ran

Code:
echo $PATH
and found that /usr/bin was world writable so I ran

Code:
sudo chmod 755 /usr/bin
And it now works!

YEY
 
  


Reply

Tags
backuppc, error, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 04:19 PM
Kickstart install error "Unable to read group information from repositories" GGGav Fedora 1 02-07-2008 02:40 PM
"unable to read a valid proxy configuration script" adish kandalgaonkar Linux - Networking 1 05-20-2007 06:59 AM
"redhat-config-network" uses which language to run on disparate modes? tanveer Linux - General 0 12-26-2006 07:19 AM
latex: "Unable to read an entire line" when trying graphics hedpe Linux - Software 1 04-23-2006 11:44 PM


All times are GMT -5. The time now is 07:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration