How to Instal LiveCode Server on OS X Server
Posted: Wed May 21, 2014 7:10 am
I was wondering whether there are any instructions for installing LiveCode Server on a OS X Server? - the official guides only talk about altering httpd.conf files in a client machine.
Although the server software is the same (Apache) for both client and server OS X, the setup on OS X Server is different: Apple has config files all over the place, and these seem to get over-written on every update, so I wanted to avoid hacking httpd.conf files directly. I tried doing the setup via ".htacess", but the instructions for that don't work either - by default, OS X Web Server doesn't create a neat "cgi-bin" for your sites, for you to put your executables inside.
I found out that Apple seemingly wants you to put all your executables in /Library/WebServer/CGI-Executables/, so I tried:
1) putting the "livecode-server" executable (and its accompanying folders) inside /Library/WebServer/CGI-Executables/
2) adding a .htaccess file at the root of my site, with the following lines:
If I do this, and then try to run a test script (index.lc), I get a 404 server error:
I tried changing the "Action" line in the ".htaccess" file to:
And even tried:
But nothing works - I keep getting the same error...
Would anyone have any suggestions? Any guidance would be much appreciated.
Although the server software is the same (Apache) for both client and server OS X, the setup on OS X Server is different: Apple has config files all over the place, and these seem to get over-written on every update, so I wanted to avoid hacking httpd.conf files directly. I tried doing the setup via ".htacess", but the instructions for that don't work either - by default, OS X Web Server doesn't create a neat "cgi-bin" for your sites, for you to put your executables inside.
I found out that Apple seemingly wants you to put all your executables in /Library/WebServer/CGI-Executables/, so I tried:
1) putting the "livecode-server" executable (and its accompanying folders) inside /Library/WebServer/CGI-Executables/
2) adding a .htaccess file at the root of my site, with the following lines:
Code: Select all
Options ExecCGI
AddHandler livecode-script .lc
Action livecode-script /cgi-bin/livecode-server
Code: Select all
NOT FOUND
The requested URL /cgi-bin/livecode-server/index.lc was not found on this server.
Code: Select all
Action livecode-script /cgi-executables/livecode-server
Code: Select all
Action livecode-script /livecode-server
Would anyone have any suggestions? Any guidance would be much appreciated.