Migrating from On-rev to Livecode hosting

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kitchin
Posts: 3
Joined: Thu Mar 17, 2016 9:22 pm

Migrating from On-rev to Livecode hosting

Post by kitchin » Thu Mar 17, 2016 9:35 pm

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.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Migrating from On-rev to Livecode hosting

Post by Klaus » Fri Mar 18, 2016 10:40 am

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

kitchin
Posts: 3
Joined: Thu Mar 17, 2016 9:22 pm

Re: Migrating from On-rev to Livecode hosting

Post by kitchin » Fri Mar 18, 2016 1:19 pm

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!

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Migrating from On-rev to Livecode hosting

Post by Klaus » Fri Mar 18, 2016 1:59 pm

Hi kitchen,

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


Best

Klaus

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Migrating from On-rev to Livecode hosting

Post by jacque » Fri Mar 18, 2016 5:55 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

kitchin
Posts: 3
Joined: Thu Mar 17, 2016 9:22 pm

Re: Migrating from On-rev to Livecode hosting

Post by kitchin » Fri Mar 18, 2016 7:36 pm

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.

Post Reply