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" 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 "http://NAME:p...@hyperactivesw.com/cgi-bin/log.txt"; into tURL

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

2013-04-10 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 wrote: > On 4/10/13 11:39 PM, Mark Wieder

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

2013-04-10 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-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 year

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 secu

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 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. . 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. -- Jacquelin

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 wrote: > On 4/10/13 6:48 PM, Dave Cragg wrote: > > Does it make a difference if you

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 star

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: > > http://media.

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 wrote: > Double mistake : my cg

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. 20

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 wrote: > >> Wrapping up my re

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 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 file, a server 500

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 ser