lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Here is the lua I'm trying to access:

 <title>Hello World</title>
 <strong>Hello World!</strong>

I've tried accessing it at


On 3/4/10 11:53 AM, Rory Toma wrote:
OK, I've installed the latest wsapi from there, and here is what I get now when trying to execute a lua page:

There was an error in the specified application. The full error message follows:

/usr/share/lua/wsapi/common.lua:569: attempt to call field 'new' (a nil value)
stack traceback:
    /usr/share/lua/wsapi/common.lua:569: in function 'bootstrap_app'
    /usr/share/lua/wsapi/common.lua:588: in function 'load_isolated_launcher'
    /usr/share/lua/wsapi/common.lua:603: in function
    (tail call): ?
    [C]: in function 'xpcall'
    /usr/share/lua/wsapi/common.lua:223: in function 'run_app'
    /usr/share/lua/wsapi/common.lua:250: in function 'run'
    /usr/share/lua/wsapi/fastcgi.lua:40: in function 'run'
    /usr/bin/cgilua.fcgi:36: in main chunk
    [C]: ?

It's possible I have something misconfigured, as I do not have a working reference to check against, so I'm mostly guessing at how things should look at this point.


On 3/1/10 2:25 PM, Fabio Mascarenhas wrote:
Make sure you are using the latest version of WSAPI, get it here:

I didn't have time to do a proper release 1.3 yet...

Fabio Mascarenhas

On Mon, Mar 1, 2010 at 6:13 PM, Rory Toma <> wrote:
Progress... of sorts. My lua pages hang now, and here is the output from lighttpd:

/usr/bin/lua: /usr/bin/cgilua.fcgi:26: attempt to call field 'make_isolated_launcher' (a nil value)
stack traceback:
        /usr/bin/cgilua.fcgi:26: in main chunk
        [C]: ?

I had to remove the {.lp} handler as it was complaining about duplicate definitions, and of course, remove the luarocks requirement.


On 2/26/10 9:08 PM, Fabio Mascarenhas wrote:
On Sat, Feb 27, 2010 at 12:02 AM, Rory Toma <> wrote:
I'm trying to get cgilua to work on an embedded arm platform. I've compiled and installed lua, fcgi, luafilesytem, cgilua and wsapi. I've manged to get things tweaked so that wsapi.fcgi stops giving me lib errors. Now what? I'm pretty sure it's just a matter of configuration and perhaps file placement, but I am unable to find any resources beyond "run apt-get and luarocks" - which I tried, by the way on Ubuntu and ended up having luarocks barf on me with syntax errors.

So, where do I start?

I'm also using lighttpd, and not apache. I tried using thttpd but gave up on that.

I'll send more details as needed, the stuff I've done so far would be lengthy to post.


The cgilua.fcgi that you are using has a dependency on Kepler 1.1, so it does not work with the current version of WSAPI. I have attached a barebones lighttpd.conf to get you working, as well as new versions cgilua.fcgi and cgilua.cgi that work with WSAPI 1.2 and later.

I was hoping that one of the CGILua users would have already done that, I am not CGILua's maintainer and have zero interest in maintaining it... I do have commit access to, though, so I also uploaded these two new scripts there.

Fabio Mascarenhas