Phil Davis revdev at
Wed Mar 26 21:50:09 EDT 2008

It could indeed be line endings. Take a look at the server's error log. 
You should be able to get to it via FTP. It may have some clues.

I'm working on a "globals.cgi" script myself right now and just looked 
at error log. It says:
[Wed Mar 26 18:38:20 2008] [error] [client] 
/home/nweta/bin/rev29rc3: Can't open display
[Wed Mar 26 18:38:20 2008] [error] [client] Premature end 
of script headers: globals.cgi

Turns out I had the wrong line endings in my script. So in TextWrangler 
(Mac) I changed them to "Unix (LF)" with the little menu at the bottom 
edge of the window, saved the script again and it worked! Yaaaaay.

I reverted back to the 2.6.1 engine now, and I see it runs fine there 
too. It was telling me I was missing some .so files until I changed my 
line endings. Wow.


Thomas McGrath III wrote:
> Phil, Thanks for offering these checks. So far
> - My permissions are the same for each file.
> - I made the first line the same for each cgi as well.
> - I tried renaming to format. No luck
> I am getting internal server errors.
> Could it be line endings??
> Thanks, Tom McGrath
> On Mar 26, 2008, at 7:13 PM, Phil Davis wrote:
>> I know this is obvious, but it sounds like you need to find out 
>> what's "right" about the .mt file, and apply it to the other script 
>> files.
>> Some places to start:
>> - file permissions - apparently those of are correct; are 
>> permissions of other files identical to these?
>> - Rev engine path, stated in first line of script - make line 1 of 
>> all scripts like line 1 of
>> - I remember once having scripts disallowed from running (by Apache?) 
>> because their filenames didn't end with ".cgi"; maybe yours have to 
>> end with ".mt"?
>> - if you get "internal error" messages from the others, they may 
>> contain script code errors.
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:

Phil Davis

PDS Labs
Professional Software Development

More information about the use-livecode mailing list