dreamhost and Rev CGI?
Phil Davis
davis.phil at comcast.net
Sat Apr 8 05:28:43 EDT 2006
Thanks to all who posted on this topic. I got Rev CGI working on my
Dreamhost account. (Debian Linux)
I downloaded the 2.5.1 Linux installer from runrev.com, gunzipped &
untarred it locally.
My testing tonight tells me that I probably could have then simply
uploaded the engine only - revolution.x86 - to my server, into the same
directory as my CGI scripts that use it (not technically required, but
it simplifies things a little). Then fire away!
I started with a bare-bones script that I'm still changing &
re-uploading to see what else I can learn. Among other things, I
discovered that I'm running Rev engine version 2.6.2.
HEY, THIS IS FUN!
Here's my script:
=============== start after this line ===============
#! ./revolution.x86 -ui
on startup
put "the params = " & q(the params)& cr \
& "system version = " & urlDecode(the systemVersion) & cr \
& "version = " & the version & cr \
& "build = " & the buildNumber & cr \
& "machine = " & the machine & cr \
into tList
get the globals
repeat for each item tLine in it
put tLine && "=" && value(tLine) & cr after tList
end repeat
replace cr with "<br>" in tList
put "Content-Type: text/html" & cr \
& "Context-Length: " & the length of tList & cr & cr \
& "Your ip is:" && $REMOTE_ADDR & "<br>" \
& tList
end startup
function q pPhrase
return quote & pPhrase & quote
end q
============== end before this line =============
For those who care, it's stored here for another few days:
http://pdslabs.net/rev/test1.cgi?123
Thanks again to all -
Phil Davis
Dan Shafer wrote:
> Yep, I'm using what purports to be Linux engine 2.6. Still no joy but I have
> given up until I get an answer from Dreamhost.
>
> On 4/7/06, Sivakatirswami <katir at hindu.org> wrote:
>
>>We are running 2.6 on linux Fedora Core 3 without any problems...
>>and those libs are definitely not our our box. I just moved to a new
>>server in San Franscisco. it was "drag and drop" for me. As long as
>>you set permissions correctly it should work.
>>
>>OH! it must be 2.6 and *NOT* 2.6.1 the later requires the libs, the
>>former does not. Andre thought i had done some magic after he spent
>>some hours trying to get it work on our new box.. and just on a hunch
>>I move the one we had on the old box (I figured it was working so it
>>shouldwork on another box...) over to /usr/local/bin/ and CHMOD 755
>>and CGI began working right away... well guess what:
>>
>>http://www.himalayanacademy.com/cgi-bin/checkRevEngine.cgi
>>
>>2.6
>>
>>not 2.6.1 which will fail.
>>
>>if you need the .tar I'm using I can post it to our server (oops is
>>that allowed?)
>>
>>I think I got lucky because I could not find a 2.6 on Rev site onloy
>>2.6.1 and if I didn't have that old copy we would be in big trouble
>>
>>Sivakatirswami
>>
>>
>>
>>
>>
>>
>>
>>On Apr 07, 2006, at 2:24 PM, Richard Gaskin wrote:
>>
>>
>>>Dan Shafer wrote:
>>>
>>>>SO I uploaded the Linux 2.6 engine. Now I get even worse results.
>>>>Attempting
>>>>to execute the CGI from the Terminal produces a bus error. No
>>>>other useful
>>>>information.
>>>>I'm completely in the dark.
>>>
>>>A lot of people spend waaaaaaaaaaay too much time trying to figure
>>>out how to get Rev to work on a server.
>>>
>>>If RunRev Ltd. ever takes an interest in evangelizing the Rev
>>>engine as a server solution, they should change it so it no longer
>>>requires non-standard libraries it doesn't use.
>>>
>>>
>>>In the meantime, there's always Tierra.net -- sign up and ask to be
>>>hosted on server farm 2, which they maintain pre-configured for
>>>Rev....
>>>
>>>--
>>> Richard Gaskin
>>> Managing Editor, revJournal
>>> _______________________________________________________
>>> Rev tips, tutorials and more: http://www.revJournal.com
>>>_______________________________________________
>>>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
>>
>>_______________________________________________
>>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
>>
>
>
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Dan Shafer, Information Product Consultant and Author
> http://www.shafermedia.com
> Get my book, "Revolution: Software at the Speed of Thought"
>>From http://www.shafermediastore.com/tech_main.html
> _______________________________________________
> 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
>
More information about the use-livecode
mailing list