"Anand" <karigna_no DeleteThis @verizon.net> wrote in
news:4u4wb.4673$rS5.4646@nwrdny02.gnilink.net:
> Robi
>
> read and execute for all groups - 755 but that's still not enough, not
> sure what else I'm missing although it's clear I am.
>
>
> "Robi" <me DeleteThis @privacy.net> wrote in message
> news:bpqij4$1s1h0d$1@ID-211961.news.uni-berlin.de...
>> Anand wrote:
>> > I have some more information to my earlier question, I have the
> following
>> > entry in my apache error_log:
>> >
>> > [Sun Nov 23 09:08:10 2003] [error] [client 127.0.0.1] Permission
>> > denied
> at
>> > /var/www/cgi-bin/submit.cgi line 17.,
>> > referer: http//localhost/
>> >
>> > line 17 is the open file line: open F, $FILENAME or die $!;
>> >
>> > $FILENAME is declared in line 10 as /root/perlfiles/out.txt
>>
>> what are the file permissions for /root/perlfiles/out.txt ?
>> I suppose Apache doesn't have the right to open the file.
Put the file somewhere else. For example, if the text file is created on
the fly, stick it in /tmp. Another good location is /var/local if the file
is more persistent.
If the file contains sensitive information, change the owner to your apache
user and set the permissions to 600.
--
Rossz
Remove 'NOSPAM' from my email address to reply directly<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Unable to read txt file on server