Trouble with LiveCode Server on Ubuntu
brahma at hindu.org
Fri Feb 19 23:39:36 CET 2016
We have two Linode Cloud servers. Both have almost the exact same Ubuntu 14.04 configuration.
But on one of them I cannot get LiveCode server to "fire"
the layout is correct and exact match for the server that is working. Permssions are all set properly to 755 and the owner and group are correct.
the latter CGI is very simple
put the keys of $_SERVER into tCGIVars
repeat for each line x in tCGIVars
put x & ": " & $_SERVER[x] & ("
"& cr) after tGlobals
put "Hello, Livecode Server is Up and Running" & "
" & tGlobals
but we get this in the suexec log:
[2016-02-19 14:01:51]: uid: (1000/htoday) gid: (1000/htoday) cmd: echo.lc
[2016-02-19 14:01:51]: (2)No such file or directory: exec failed (echo.lc)
A small bin/sh cgi is working
# make Apache happy with the right html content tags
echo "Content-Type: text/plain"
echo "testing bin/sh"
So there is nothing wrong with sudoers and user ID for and httpd.conf is set up correctly or the sh cgi would also fail.
and of course using this in /public_html/.htaccess
AddHandler livecode-script .lc
Action livecode-script /cgi-bin/livecode-community-server
and a simple .lc file in public_html gets us the same result
# some script here
failing with a slightly different but similar error in the suexec log. Instead of saying the script itself cannot be found. it says that LC Server cannot be found...
[2016-02-19 14:19:36]: uid: (1000/htoday) gid: (1000/htoday) cmd: livecode-community-server
[2016-02-19 14:19:36]: (2)No such file or directory: exec failed (livecode-community-server)
Any clues? I've been digging into the logs and Apache2 config files etc until my eyes are weeping...I have a ticket into the Virtualmin support team, but this is pretty mysterious, even for them... since the #!bin/sh works... why not LCserver?
it's as if there is some hidden path info/config that is is hiding livecode-community-server
More information about the use-livecode