REV CGIs

Phil Davis revdev at pdslabs.net
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 24.20.73.192] 
/home/nweta/bin/rev29rc3: Can't open display
[Wed Mar 26 18:38:20 2008] [error] [client 24.20.73.192] 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.

HTH -
Phil


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 the.mt 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 echo.mt 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 echo.mt
>>
>> - 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 lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net




More information about the Use-livecode mailing list