Livecode Server on DigitalOcean

The following instructions are thanks to Mike Bonner and describe how to get Livecode Server running on DigitalOcean:

VIMEO 131920147 A quick rough and ready tutorial about how to set up your own Livecode Server and Apache set up on Digital Ocean.

Fetch and Install LiveCode Server

1) Create your Droplet. Choose LAMP 14.04 (Ubuntu) so you don't have to mess with setting up Apache and all by hand.

2) Fetch Livecode. After Droplet creation, ssh to your server and use wget to grab the 64bit version of lc server 7.0.6.

wget http://downloads.livecode.com/livecode/7_0_6/LiveCodeCommunityServer-7_0_6_rc_3-Linux-x86_64.zip

Alternatively you can use Digital Oceans built in web console to issue terminal commands on the server through the web interface.

3) Install unzip:

apt-get install unzip

4) unzip the file (to expand the contents):

unzip <lc server filename>

5) Make it executable the server file executable so you can launch it as a programme and not edit it as text:

chmod 755 livecode-community-server

6) Move the files to the correct location (you could have moved the zipped file then could unzipped them there):

mv livecode-community-server /usr/lib/cgi-bin mv externals /usr/lib/cgi-bin mv drivers /usr/lib/cgi-bin

# Final Steps - testing

11) Add a test script to see if Apache is serving up LiveCode scripts as cgi's. Create a simple file:

nano -w /var/www/html/test.lc

and paste into it the following script:

<?lc put random(542545) ?>

Then I went to the droplets ip.. http://xxx.xxx.xxx.xx/test.lc and voila' it works.

# And then...

- Apache Web Directory Owners - Apache Tweaks - You may then want to install RevIgniter