Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Can't Open file for Read in CGI/Absolute file path

From: tim:johnsons-web at: 15-Apr-2002 8:33

* Petr Krenzelok <[petr--krenzelok--trz--cz]> [020415 01:50]:
> Tim Johnson wrote: > > >Hello All: > > > > 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. > > Thanks! > >
Hello Pekr:
> 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?
Same access rights as any other file I'm doing I/O with in CGI.
> 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 ...
Works fine, had checked that too.... The problem as I see it is with *absolute* file paths. (In cgi mode) Example: via .. for any number of levels (relative path) works too in CGI. I am beginning to suspect it is an apache config. Thanks! -tim-
> -pekr- > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com