Advertisement

09.14.2007 at 06:06AM PDT, ID: 22828711 | Points: 250
[x]
Attachment Details

permission denied when apache is executing perl script

Asked by zubinnt in Apache Web Server, Perl Programming Language

Tags: , , , ,

i am running apache on FEDORA web server there seems to be some permissions issue when running a perl script

currently httpd runs under group apache and user apache

and the file that i am wanting to is given 777 permissions

using the perl code


   use Cwd;
   use vars qw($DIR);
   $DIR = cwd();

   $output_filestxt = $DIR . "/" . "enetslog.txt";
   print $output_filestxt;
   open(DATAFILE, ">> $output_filestxt") or print " $!";
   print DATAFILE "$amount;$txnRef;$payment;$txnDate;";
   print DATAFILE "\n";
   close(DATAFILE);

i get the error message /var/www/cgi-bin/tas/enetslog.txt Permission denied

however on another system this works fine.

So i suspect it's some configuration issue with apache or some permissions somewhere that i am unaware about.

any ideas anyone ?


Start Free Trial
[+][-]09.14.2007 at 06:12AM PDT, ID: 19891083

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 07:40AM PDT, ID: 19891939

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 07:41AM PDT, ID: 19891956

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 08:19AM PDT, ID: 19892327

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 09:16AM PDT, ID: 19892857

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 10:19AM PDT, ID: 19893388

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 11:29AM PDT, ID: 19893945

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 11:12PM PDT, ID: 19896648

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.15.2007 at 05:47AM PDT, ID: 19897351

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2007 at 12:50PM PDT, ID: 19898427

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.15.2007 at 01:18PM PDT, ID: 19898500

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628