Forum

FCGI WSAPI LUA

J. Lambrecht
29 August 2014, 17:12
Hiawatha version: 9.x
Operating System: Ubuntu LTS 14 /Debian 7

Hello

It is a while back i managed to have lua run as a script backend.

Now i'm looking to have lua-wsap-fcgi running. What i fail to find is what i should point the FastCGIserver ConnectTo = argument to.

There is no such thing as a lua fcgid, and /usr/bin/wsapi.fcgi does not have documentation on a lock file to point to in /var/run or /var/lib

Please advize
Hugo Leisink
29 August 2014, 20:09
Please, read the FastCGI section of this howto first. As stated there, Hiawatha only supports the FastCGI type where a webserver connects to a port or a unix socket. What port or unix socket to connect to is to be specified via the ConnectTo setting.
J. Lambrecht
30 August 2014, 13:40
Hi, i've done so and realized there was nothing to connect to, hence my question. I might be ill formulated.

In the meantime i've found LuaFCGID and spawn-fcgid which might well be what i need.

J. Lambrecht
30 August 2014, 14:43
Here's how to have any fcgi daemon running quick and easy, example is for Lua.

apt-get install spawn-fcgid lua-wsapi-fcgi

Launching an FCGID for any fcgi daemon can be done as such.
spawn-fcgi -a 127.0.0.1 -p 2015 -c /var/www/ -u www-data -g www-data -- /usr/bin/wsapi.fcgi

netstat -alnp | grep 2015
tcp 0 0 127.0.0.1:2015 0.0.0.0:* LISTEN 4630/lua5.1



This topic has been closed.