Page 1 of 1

INSTRUCTIONS:How to setup LiveCode Server on Windows 7 Guide

Posted: Tue Mar 10, 2015 5:41 pm
by LiveCodeBeginner
Hello all,

I don't know if this is the right place to post this but recently I was trying to setup LiveCode server on a Windows 7 VM Machine. I ran into several hurdles along the way and had several members of the community help out with resolving the issue and I thank them. I am making this simplified guide for anyone that may want to do this for themselves.

IMPORTANT
LiveCode Server version 7.x will not work! (I am not sure why) I used version 6.6.1 but I think any version before 7 will work. (As recommended by one of the users who helped me troubleshoot my own issues. Thank you)



My Windows 7 Setup (I am not sure if it matters):

Windows 7 Home Premium
4 GB
x64 bit

I am using WAMP as well which is easy to setup on it's own. You can go here to download it: http://www.wampserver.com/en/

Step 1

Open the HTTPD.Conf file located at the following path located in the WAMP Directory where you installed it:

EG:

Code: Select all

C:\Users\DEV\wamp\bin\apache\apache2.4.9\conf\
Edit the HTTPD.File using your favorite word editor (I used Notepad++ as Notepad garbles it when you open it up).

Scroll down to the <Directory> area and add the following:

Code: Select all

<Directory /Users/DEV/wamp/www/>
  Require all granted
</Directory>

<Directory "C:/Users/DEV/wamp/www/">
	Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
	AddHandler livecode-script .lc
	Action livecode-script /cgi-bin/livecode-server.exe
</Directory>

<Directory "C:/Users/DEV/wamp/bin/apache/apache2.4.9/cgi-bin/"> 
	AllowOverride None
    Options +ExecCGI
    Require all granted
</Directory>
Step 2

Navigate to the CGI-BIN folder in the Apache Directory and extract all the LiveCode-Server Files into it.

Code: Select all

C:\Users\DEV\wamp\bin\apache\apache2.4.9\cgi-bin
The folder structure should look like this:

Drivers [FOLDER]
Externals [FOLDER]
Livecode-server.exe
+ all other files in here by default

Step 3
Create a sample test file called Test.LC and put it in the WWW folder located where you installed WAMP:

Code: Select all

C:\Users\DEV\wamp\www
TEST.LC sample code

Code: Select all

<html>

<head>
    <title>My LiveCode Server Test Page</title>
</head>

<body>
    <h1>My LiveCode Server Test Page</h1>
<?lc
     put "<p>Hello World! from LiveCode Server</p>"
    put "<p>The date is" && the date & "</p>"
?>
</body>

</html>
Step 4
Restart the Apache Server.

You can restart the server by quickly LEFTclicking on the "W" icon that appears in your system tray after you setup WAMP and the on the popup scroll over the APACHE folder which will expand to sub folders and then scroll over SERVICE and then click on "RESTART SERVICE".

Step 5
Open Chrome (or your favorite browser) and type in http://locahost/test.lc

Step 6
You are done. You should see the .LC file load with the the following message "Hello World! from LiveCode Server"

Re: INSTRUCTIONS:How to setup LiveCode Server on Windows 7 G

Posted: Tue Mar 10, 2015 6:40 pm
by FourthWorld
Thanks for posting this. I took the liberty of moving it from "Beginners" to this "Server" section so folks might find it more easily. And to help make sure they find it I make it sticky.

Good tutorial - great contribution.

Re: INSTRUCTIONS:How to setup LiveCode Server on Windows 7 G

Posted: Thu Mar 12, 2015 4:55 pm
by steveuba
@LiveCodeBeginner Excellent tutorial on setting up the LiveCode server in Windows 7, I thoroughly enjoyed collaborating with you on this to make it happen. Great work and look forward to more challenges to solve. :D

Re: INSTRUCTIONS:How to setup LiveCode Server on Windows 7 Guide

Posted: Sun Mar 24, 2019 8:37 am
by montymay
Checked my LiveCode products page at LiveCode.com and I don't see an option to download any version of LC Server earlier than 7. If the settings won't work unless the version is earlier than 7, how can it be gotten? Indeed, I followed the instructions with my version 9 of LC Server and it does not work.

Monty

Re: INSTRUCTIONS:How to setup LiveCode Server on Windows 7 Guide

Posted: Sun Mar 24, 2019 1:35 pm
by bogs
montymay wrote:
Sun Mar 24, 2019 8:37 am
... I don't see an option to download any version of LC Server earlier than 7.
As easy as 'Click the pic' :wink:
Selection_002.png
How many I serve(r) you...