lua-users home
lua-l archive

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


Hi Michael,

There are many webservers that allow running lua scripts. The top 2 that come to mind are Apache and NginX. However they don't allow the execution of lua scripts by default, on Apache you need to configure it using a --enable-lua flag and then enable the mod_lua module. You can find more about it here: http://modlua.org. And for NginX there's an extension called OpenResty (http://openresty.org/). There's also a webserver in lua called Xavante (http://keplerproject.github.io/xavante/). As for running then on your host service, I guess you would need to contact them!

Cheers,
Etiene.

2015-02-06 16:37 GMT+01:00 Michael Gerbracht <smartmails@arcor.de>:
Hello,

I would like to generate a licence file using lua code involving some
information from a website. So if user goes to my website, makes some choices
and enters his personal data, this information should be passed to a lua
script (e.g. by writing/reading a database entry) which takes the provided
information and generates a licence file. This licence file should then be
send to the user (via e-mail or download).

My question is not about the lua script itself but I don't know whether it is
possible to run a lua script on a webserver. Can you give me some hint
whether this is possible and what it required to get it running? Also, is it
likely that my hoster (domainfactory.de) will allow me to run a lua script on
my website?

thank you very much,
Michael