Hi, Tim.

I'm no Linux or Apache expert myself, but I would guess that it is a 
permissions problem.  Apache is executing your cgi script with the 
permissions of user "nobody".  I bet the directory /home/httpd/cgi-bin does 
not allow write permissions for anyone but user "httpd".  Therefore, when 
your script attempts to create a file in this directory, it is getting a 
permissions error.

Just a guess.

Jamey.


On Tuesday 14 November 2000 22:32, you wrote:
> Hi:
>     Am new to linux and apache.
> I am running the following script on through apache:
> ;====
> #!/usr/bin/rebol -cs
> REBOL[]
> print "Content-Type: text/html^/^/"
> debug-port: open/new/write make file! "test.txt"
> close debug-port
>
> running this from rebol command line as
> do %testcgi.r
> performs without error message.
>
> Running this as a cgi script ie.
> http://localhost/cgi-bin/testcgi.r
>
> returns the following error message from rebol:
> ** Access Error: Cannot open /home/httpd/cgi-bin/test.txt.
> ** Where: debug-port: open/new/write make file! "test.txt"
>
> subsitituting
> write %test.txt "line one"
>
> returns the following error message from rebol:
> ** Access Error: Cannot open /home/httpd/cgi-bin/test.txt.
> ** Where: write %test.txt "line one"
>
> I'm guessing I need to do something with the apache configuration.
> Does anyone know what needs to be done?
> TIA
> -Tim
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to