CGI permissions

Alex Tweedly alex at tweedly.net
Sat Aug 27 19:58:52 EDT 2005


Dave Cragg wrote:

>
> On 28 Aug 2005, at 00:19, Mark Smith wrote:
>
>> No, this is still all on one machine (Mac Powerbook with 10.3.9).  
>> The files are in a folder on the desktop and the CGI is in the / 
>> Library/WebServer/CGI-Executables folder. I'm just pointing my  
>> browser at localhost.
>>
>> I've tried (whilst in the IDE) importing all the data into  
>> customProperties in the CGI, and that works, but I can't actually  
>> get the CGI to sucessfully open and read any files, even if I copy  
>> them into the same CGI-Executables folder and set their permissions  
>> to 755.
>> It can, however, get the list of files from the folder they're in,  
>> so I'm pretty sure my paths are fine.
>
>
> You said you had set the Desktop folder to 644. I don't think that's  
> a good move. However, if the files are in the CGI-Executables folder,  
> and have permissions set to 755, they should be readable. Are they  
> loose in the CGI-Executables, and not in a sub-folder? If they're in  
> a subfolder, check the permissions on that.
>
I don't know if this is relevant or not, but my ISP has the following 
rule (from their user manual) ...

> *CGI-BIN*
> At the same directory level as httpdocs you will find your cgi-bin 
> directory. You should ensure all your scripts reside within this 
> directory. You may only place CGI scripts within this directory. 
> Attempting to read any other file types (such as HTML files) from this 
> directory will not be permitted.
>
so it might be worth trying it with a file outside the CGI-Executables 
directory.

-- 
Alex Tweedly       http://www.tweedly.net

-------------- next part --------------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005


More information about the use-livecode mailing list