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/enets
log.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