Page 1 of 1

Migrating from On-rev to Livecode hosting

Posted: Thu Mar 17, 2016 9:35 pm
by kitchin
Our host On-rev migrated us to Livecode hosting. The cgi scripts with this bang line stopped working:

Code: Select all

#!rev  -ui
I noticed there's a big binary blob in the cgi folder called "rev". Can someone explain this ecosystem to me, or enough to get a Hello World script running?

Otherwise it looks like regular old cPanel hosting and php is working (Wordpress, for example). But the rev cgi's are giving us error 500. File permissions are 755. Here is the hello world I tried:

Code: Select all

#!rev  -ui
on startup
  put "Content-Type: text/plain" & cr & cr
  put "Hello World!"
end startup
I also tried it with

Code: Select all

#!revolution
Thanks in advance.

Re: Migrating from On-rev to Livecode hosting

Posted: Fri Mar 18, 2016 10:40 am
by Klaus
Hi kitchin,

1. welcome to the forum! :D

2. Not being an expert, but I think you now need to use "?lc" like in this snippet:

Code: Select all

<html>
<body>
<?lc
  put "<p>Go away! :-)</p>"
?>
</body>
</html>
Best

Klaus

Re: Migrating from On-rev to Livecode hosting

Posted: Fri Mar 18, 2016 1:19 pm
by kitchin
Yeah I am a little confused on cgi scripts vs. inline usage for Livecode formerly-known-as-revolution. And perhaps how to get this big "rev" blob running in the cgi folder. I've looked around but haven't found a big picture explanation of the platform I'm on!

Re: Migrating from On-rev to Livecode hosting

Posted: Fri Mar 18, 2016 1:59 pm
by Klaus
Hi kitchen,

maybe this site will help a bit:
http://on-rev.com/revolution/overview/


Best

Klaus

Re: Migrating from On-rev to Livecode hosting

Posted: Fri Mar 18, 2016 5:55 pm
by jacque
The old Rev engine is 32-bit. If the new server is 64-bit it won't be able to run the Rev code and you'll get that error. You'll need to replace it with a 64-bit LC engine instead. After that all your original cgi scripts should work again.

Re: Migrating from On-rev to Livecode hosting

Posted: Fri Mar 18, 2016 7:36 pm
by kitchin
jacque wrote:The old Rev engine is 32-bit. If the new server is 64-bit it won't be able to run the Rev code and you'll get that error. You'll need to replace it with a 64-bit LC engine instead. After that all your original cgi scripts should work again.
Ah, thanks a million. It's Livecode hosting, so I'll see if they will do that install for us.