Trouble with LiveCode Server on Ubuntu

Richard Gaskin ambassador at fourthworld.com
Fri Feb 19 17:46:21 EST 2016


I saw the "(2)No such file or directory" error on one of my VPSes 
yesterday.  Mystified me, since I know the file is there.

Looking into it further it turns out that error can happen with 
executables when the executable is 64-bit on a 32-bit system.  I had 
installed the 64-bit LC Server engine, but had forgotten that I'd set up 
that VPS with a 32-bit Ubuntu.  Just dropped in the 32-bit LC and it 
worked great.

Hopefully your resolution will be as simple.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com


Sannyasin Brahmanathaswami wrote:

> 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.
>
> /cgi-bin
> drivers
> externals
> livecode-community-server
> echo.lc
>
> the latter CGI is very simple
>
> #!/home/htoday/cgi-bin/livecode-community-server
> put the keys of $_SERVER into tCGIVars
>
> repeat for each line x in tCGIVars
> put x & ": " & $_SERVER[x] & ("
> "& cr) after tGlobals
> end repeat
>
> 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
>
> http://www.hinduismtoday.com/cgi-bin/test-sh.cgi
>
> %
> #!/bin/sh
> # make Apache happy with the right html content tags
> echo "Content-Type: text/plain"
> echo ""
>
> 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
>
> <?lc
>
> # 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 mailing list