LiveCode Server Setup Issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
LiveCodeBeginner
Posts: 26
Joined: Fri Oct 10, 2014 9:40 pm

LiveCode Server Setup Issue

Post by LiveCodeBeginner » Fri Feb 13, 2015 11:46 pm

Hello everyone,

I am trying to setup LiveCode Server via Apache and I am running into an issue. I am not sure what it is. I will post what I did below.

1. I modified the httpd.conf file to include what was specified in the installation manual:

Code: Select all

<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
    AddHandler livecode-script .lc
    Action livecode-script /livecode-cgi/livecode-server.exe
 
</Directory>

<Directory "C:\Users\******\Documents\LiveCodeServer\livecode-server.exe">
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

ScriptAlias /livecode-cgi/livecode-server.exe "C:\Users\******\Documents\LiveCodeServer\livecode-server.exe"
Now when I run the test.LC file I get 404 error every time? I've restarted the apache server multiple times as well. Nothing seems to be working?

I've placed the file in the:

Code: Select all

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs"
Have I missed anything? Is it a permission issue?

Any help would greatly be appreciated.

Thank you. 8)

Peter Wood
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 92
Joined: Mon Jul 06, 2009 4:53 am

Re: LiveCode Server Setup Issue

Post by Peter Wood » Sun Feb 15, 2015 12:14 am

I'm guessing from the filenames that you are trying to install LiveCode Server on Windows.

It seems that you have two definitions of <Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs">.

Also this line:

Code: Select all

Action livecode-script /livecode-cgi/livecode-server.exe
You specify that the path to the livecode-server binary is C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/livecode-cgi/livecode-server.exe. Is that where you have put it?

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: LiveCode Server Setup Issue

Post by charms » Sun Feb 15, 2015 9:15 pm

Hi,

I've never tried running LC Server on Windows but maybe my tutorials for Linux and Mac can help as the configuration of the Apache should be similar:

http://carmstrong.net/?p=175
http://carmstrong.net/?p=129

Hope it helps.

Post Reply