For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > April 2006 > permission denied









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author permission denied
Akpome Akpoguma

2006-04-27, 7:55 am

hi everyone,

i am a newbie to cgi...... I did the following

..........................
........

my $dbfile = "/var/animals/$infile";

open WFH, "> $dbfile";

from my cgi scripts on apache/linux server.......

when I directed the error to web page

it dispalays something like "Permission denied"

then I did

<Directory /var/animals>
Order Deny,Allow
Allow form all
</Directory>

in apache config file.........and got same response

what do I need to do? your help will be highly appreciated!


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Joerg Keller

2006-04-27, 7:55 am

hiya!

Akpome Akpoguma schrieb:
>
> my $dbfile = "/var/animals/$infile";
>
> open WFH, "> $dbfile";
>

you wanna open the file in the variable $infile for writing. in this
case the webuser (from apache conf-file) need the right to to this.

so ... check the confile, which the webuser`s id is (www-data atmost)
go to the directory /var/animals and change the ownership of the file
(chown) and the rights (chmod) .... if you are sure, everybody may write
into this file ;-)

regards

joerg
--
".. you may also throw your money out of the M$-Windows"

www.gangleri.de
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com