Server Installation

panagiotis merakos merakosp at gmail.com
Mon Jun 19 12:14:47 EDT 2017


Hi Bob,

I keep the latest LC Server version in my Desktop. I also have a LC_SERVER
folder, in which I put the old LC Server as soon as I download a new
version. So, when a new LC Server version is released, I do the following:

1. Download latest LC Server on Desktop
2. Right-click on livecode-server executable and check the "Executable"
permission
3. sudo nano '/etc/apache2/apache2.conf'

4. Change the existing paths to point to the LC Server you downloaded in
step 1


Here are the changes I do to the file: /etc/apache2/apache2.conf:

<Directory /var/www/>
        Options FollowSymLinks Multiviews
        MultiviewsMatch Any
        AllowOverride None
#       Order allow,deny
#       allow from all
        Require all granted
        AddHandler lcscript .lc
        Action lcscript /livecode-cgi/livecode-server
</Directory>

<Directory "/home/panos/Desktop/LiveCodeServer-9_0_0_dp_7-Linux-x86_64">
        Options ExecCGI
#       Order allow,deny
#       Allow from all
#       Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
#       Options all
#       AllowOverride All
#       Require all granted
</Directory>


ScriptAlias /livecode-cgi/
/home/panos/Desktop/LiveCodeServer-9_0_0_dp_7-Linux-x86_64/

5. sudo apache2ctl restart
6. Type in Firefox: localhost/test.lc
7. In case of an error, the error log is in /var/log/apache2/error.log

Note that the "test.lc" file is located in /var/www/html/, and it contains
the following code:

<html><head><title>LiveCode Server Test</title></head><body>

<?lc

put "Hello from  " & the version

?>

</body><html>

Best,
Panos
--

On Mon, Jun 19, 2017 at 5:52 PM, Bob Sneidar via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Ubuntu on a local server running under ESX1 5.1. I have already installed
> Apache and verified it's running. Mike Bonner has offered some useful
> information on how to enable those things. I will give those a try later.
>
> I wonder if there is a book called, "Setting up Apache2 on a Linux server
> as CGI for a Complete Moron". They would sell at least one copy. :-)
>
> Bob S
>
>
> > On Jun 16, 2017, at 17:23 , Richard Gaskin via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > It sounds like you're using a VPS or dedicated machine, rather than a
> shared host, yes?
> >
> > I missed which Linux distro you're using.  Has the Apache install there
> already enabled CGI?
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list