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\
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>
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
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
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>
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"