Re: Can't retrieve a text file from a remote CGI folder

2013-04-11 Thread J. Landman Gay
On 4/10/13 11:39 PM, Mark Wieder wrote: Jacque- Wednesday, April 10, 2013, 8:08:41 PM, you wrote: But I do only want to read from it. I think you're right that permissions won't allow remote reading, otherwise anyone could read the scripts in there. I was gonna suggest that, except you said

Re: Can't retrieve a text file from a remote CGI folder

2013-04-11 Thread stephen barncard
Andre had the same problem helping me to try to use the top-level cgi folder at Dreamhost. I'd love to make it work, maintaining a Livecode instance for every domain and the same server account is a pain. On Wed, Apr 10, 2013 at 11:01 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On

Re: Can't retrieve a text file from a remote CGI folder

2013-04-11 Thread Dave Cragg
On 11 Apr 2013, at 03:37, J. Landman Gay jac...@hyperactivesw.com wrote: Oh geez. Yeah, it does. I've been at this so long I can't read any more. Thanks. Maybe you can tell me what's wrong with this then? Sent from a stack on my Mac: put

Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread J. Landman Gay
Wrapping up my recent move to a different 32-bit server, there's one issue left. Linux gurus, can you help? CGI text-based scripts are now working correctly except for an issue I can't identify. When writing to a log file, a server 500 error occurs immediately after the write. Here's a test

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread Pierre Sahores
Jacque, In my own configs, only the cgi-bin directory is set to 755 while any lc or irev scripts are in 644. Else, what happen if you set the written file outside of the cgi-bin directory ? Le 11 avr. 2013 à 01:17, J. Landman Gay a écrit : Wrapping up my recent move to a different 32-bit

Fwd: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread Pierre Sahores
Jacque, In my own configs, only the cgi-bin directory is set to 755 while any lc or irev scripts lying inside this cgi-bin dir are in 644. Else, what happen if you set the written file outside of the cgi-bin directory ? Le 11 avr. 2013 à 01:17, J. Landman Gay a écrit : Wrapping up my

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread Dave Cragg
On 11 Apr 2013, at 00:17, J. Landman Gay jac...@hyperactivesw.com wrote: Wrapping up my recent move to a different 32-bit server, there's one issue left. Linux gurus, can you help? CGI text-based scripts are now working correctly except for an issue I can't identify. When writing to a log

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread Pierre Sahores
Jacque, Seems that the best is always to have the cgi-bin dir set to 555 instead of 755 if possible. Works for me in 555 instead of what i wrote by error in my first report. Le 11 avr. 2013 à 01:48, Dave Cragg a écrit : On 11 Apr 2013, at 00:17, J. Landman Gay jac...@hyperactivesw.com wrote:

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread Pierre Sahores
Double mistake : my cgi-bin dir needs 755 Le 11 avr. 2013 à 01:57, Pierre Sahores a écrit : Jacque, Seems that the best is always to have the cgi-bin dir set to 555 instead of 755 if possible. Works for me in 555 instead of what i wrote by error in my first report. Le 11 avr. 2013 à

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread stephen barncard
I have to set most of the permissions on Livecode server files and directories after expanding the zip; so I made an graphic to help which I will share: http://media.barncard.com/downloads/LIVECODE-SERVER-SETUP.pdf On Wed, Apr 10, 2013 at 5:05 PM, Pierre Sahores s...@sahores-conseil.comwrote:

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread stephen barncard
sorry I mis-read the OP... On Wed, Apr 10, 2013 at 5:20 PM, stephen barncard stephenrevoluti...@barncard.com wrote: I have to set most of the permissions on Livecode server files and directories after expanding the zip; so I made an graphic to help which I will share:

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread J. Landman Gay
On 4/10/13 6:48 PM, Dave Cragg wrote: Does it make a difference if you put another cr after the header? on startup open file log.txt for append write this is a test cr to file log.txt close file log.txt put Content-Type: text/plain cr put cr put done writing end startup Oh

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread stephen barncard
I think the cgi folder is special (read only) to Apache for security by design. I've never been able to write to it except by FTP. But I didn't try that hard On Wed, Apr 10, 2013 at 7:37 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 4/10/13 6:48 PM, Dave Cragg wrote: Does it

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread J. Landman Gay
On 4/10/13 6:41 PM, Pierre Sahores wrote: Jacque, Else, what happen if you set the written file outside of the cgi-bin directory ? The write error was my script. blushes. But I still don't know why I can't retrieve the text file from a LiveCode stack if the file is in the cgi folder. --

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread J. Landman Gay
On 4/10/13 9:52 PM, stephen barncard wrote: I think the cgi folder is special (read only) to Apache for security by design. I've never been able to write to it except by FTP. But I didn't try that hard But I do only want to read from it. I think you're right that permissions won't allow

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread Shawn Blc
The cgi-bin is primarily for scripts to be executed. Try to put your text file outside of the cgi- bin and read it from there. On Wednesday, April 10, 2013, J. Landman Gay wrote: On 4/10/13 9:52 PM, stephen barncard wrote: I think the cgi folder is special (read only) to Apache for

Re: Can't retrieve a text file from a remote CGI folder

2013-04-10 Thread Mark Wieder
Jacque- Wednesday, April 10, 2013, 8:08:41 PM, you wrote: But I do only want to read from it. I think you're right that permissions won't allow remote reading, otherwise anyone could read the scripts in there. I was gonna suggest that, except you said the scripts have been working for years.