CGI permissions

Mark Smith mark at maseurope.net
Sat Aug 27 19:19:28 EDT 2005


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.

In fact, I've just discovered that the CGI can't produce the system 
date, either. It doesn't produce an error, but 'put the system date 
into myVar' simply puts empty into myVar. Perhaps this is a broken 
engine.

I'm using the engine at this link:
http://www.runrev.com/downloads/engines/2.1.2/cgi/osx.zip
which shows up simply called "rev" and was apparently created on the 
18th April 2003.

Could this be an aberrant engine?
Anyone know of a more recent/less recent version that will work on my 
system?

Thanks,

Mark

On 27 Aug 2005, at 19:12, Dan Shafer wrote:

> So the text files you're trying to read on your desktop but the CGI is 
> on a (presumably remote even if in the same room and on the same 
> subnet) server? Is that the architecture?
>
> Have you tried logging into the server and copying those files from 
> your desktop? That would tell you whether there's some sort of 
> underlying connection issue or permissions problem.
>
>
> On Aug 27, 2005, at 9:26 AM, Mark Smith wrote:
>
>> It's a stack (no UI elements) which has some template html stored in 
>> custom properties, tries to get the data from the files and "puts" 
>> the result.
>> It's opened from a simple text CGI.
>>
>> I think the problem maybe that the the files are in a folder on my 
>> desktop - however, having changed the permissions for the desktop to 
>> 644 ( was this a stupid thing to do? no-one else uses the machine), 
>> the problem persists. The stack works properly in the IDE, and the 
>> paths to the files are absolute and complete, as it were (no 
>> specialFolderPath, or anything).
>>
>> Thanks,
>>
>> Mark
>>
>> On 27 Aug 2005, at 17:09, Dave Cragg wrote:
>>
>>
>>>
>>> On 27 Aug 2005, at 16:58, Mark Smith wrote:
>>>
>>>
>>>> I have a Rev CGI stack that collects data from some text files, 
>>>> builds some html and returns it to the browser.
>>>> The html stuff is all working fine, but the stack is unable to read 
>>>> the necessary files to get the data...
>>>>
>>>> Could some kind soul tell me what the permissions should be, both 
>>>> for the stack (which resides in the CGI-Executables folder, 
>>>> currently 755) and for the files (which live elsewhere).
>>>>
>>>>
>>>
>>> 644 should work for reading the files. (Anyone can read, only the 
>>> owner can write.)
>>>
>>> When you say a "CGI stack", do you mean a script file, or a stack 
>>> that is opened by a script file? However, 755 should work in either 
>>> case, unless you need to dave the stack.
>>>
>>> Cheers
>>> Dave
>>>
>>>
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>
>>
>>
>>
>>
>>
>> ___________________________________________________________ Yahoo! 
>> Messenger - NEW crystal clear PC to PC calling worldwide with 
>> voicemail http://uk.messenger.yahoo.com
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dan Shafer, Information Product Consultant and Author
> http://www.shafermedia.com
> Get my book, "Revolution: Software at the Speed of Thought"
> From http://www.shafermediastore.com/tech_main.html
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list