CGI Setup on Mac OS X Server (Leopard)

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
Redlance305
Posts: 30
Joined: Sun Feb 28, 2010 9:52 pm
Contact:

CGI Setup on Mac OS X Server (Leopard)

Post by Redlance305 »

Spent two days trying to get the simple "hello.cgi" app to work on one of our Xserves. Keep getting the 500 error message (script not completed). Followed the following:

http://www.runrev.com/newsletter/july/i ... tter2.html (Parts 1 & 2)
(there was another guide very much like this one, but it also didn't work)

Attempted to use:
http://revonline2.runrev.com/stack/267/ ... v-CGI--1-1
Looked hopeful but never worked.

Any step-by-step guides to setting up CGI, with file locations, requirements, etc?
Could really push the abilities of runrev/revtalk/reEnterprise/whatever if I could get his working!

Thanks
~David
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: CGI Setup on Mac OS X Server (Leopard)

Post by Klaus »

Hi David,

what engine did you put into your CGI folder?
Redlance305
Posts: 30
Joined: Sun Feb 28, 2010 9:52 pm
Contact:

Re: CGI Setup on Mac OS X Server (Leopard)

Post by Redlance305 »

As per the instructions, I copied the file from:

/Revolution Enterprise/4.0.0-gm-1/Runtime/Mac OS X/Universal/Standalone

tried renaming it to "revolution" as per instructions, used "standalone". At one point I even copied the "Revolution" file from:

/Revolution Enterprise/4.0.0-gm-1/Revolution

renamed it to both "revolution" and "standalone". Of course it did NOT work.

~David
BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: CGI Setup on Mac OS X Server (Leopard)

Post by BvG »

you can't use the 4.0 engine. The lates version that can be used as cgi engine is 3.5. If you bought rev after 4.0 came out, or deleted your 3.5 installation, mail support so you can get a fresh copy.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: CGI Setup on Mac OS X Server (Leopard)

Post by Klaus »

Yep, 3.5 will work.
And you only need the executable (Standalone.app/COntents/MacOS/Standlone) NOT the app bundle!
Redlance305
Posts: 30
Joined: Sun Feb 28, 2010 9:52 pm
Contact:

Re: CGI Setup on Mac OS X Server (Leopard)

Post by Redlance305 »

Totally correct, I removed the executable from the bundle per the instructions (we do that type of thing on a daily bases in building our apps, scripts, etc.)

Emailed Support for the file(s)!

Thanks!
~David
RRobert
Posts: 151
Joined: Sat Feb 28, 2009 8:20 pm

Re: CGI Setup on Mac OS X Server (Leopard)

Post by RRobert »

See also this post. In case you like to use the 4.0 engine.

Robert
Redlance305
Posts: 30
Joined: Sun Feb 28, 2010 9:52 pm
Contact:

Re: CGI Setup on Mac OS X Server (Leopard)

Post by Redlance305 »

Received version 3.5 from RunRev (Thanks!)

Worked the first try! Fantastic!

Why would they remove this function/feature? Anyway, everything works when running the 3.5 runtime under OS X, as per the instruction listed before.

Again, thanks runrev!
~David
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: CGI Setup on Mac OS X Server (Leopard)

Post by FourthWorld »

I don't think it's been removed as much as merely delayed.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Post Reply