[REBOL] Re: Can't Open file for Read in CGI
From: petr:krenzelok:trz:cz at: 15-Apr-2002 11:13
Tim Johnson wrote:
> I have a CGI program that evaluates the following:
> print read/lines %/home/tim/.bashrc
> And I get the following error message:
> Cannot open /home/tim/.bashrc
> Yet if I evaluate the same command from the
> rebol console command line in the same directory
> it works.
> i.e. : I have the same problem with *any* file that
> is prepended with an absolute file path.
> Any input on this is appreciated.
What about access rights? Your Apache is running in Nobody mode, maybe
you set incorrect rights to your file so it is not visible to CGI
script? You can also try to run your cgi script from your unix console -
switch to the directory where your script resides and type its name and
press enter - should work too ...