INSTRUCTIONS:How to setup LiveCode Server on Windows 7 Guide

Are you using LiveCode to create server scripts or CGIs?

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

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

INSTRUCTIONS:How to setup LiveCode Server on Windows 7 Guide

Post by LiveCodeBeginner » Tue Mar 10, 2015 5:41 pm

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"

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6210
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Tue Mar 10, 2015 6:40 pm

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.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

steveuba
Posts: 14
Joined: Sat Mar 22, 2014 5:10 pm
Location: Alberta
Contact:

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

Post by steveuba » Thu Mar 12, 2015 4:55 pm

@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
Custom IT solutions that won't require you to break the bank.......
http://www.ezektec.com/

Post Reply

Return to “CGIs and the Server”