mod_lua for kepler 1.1

Hoffmann Zei

mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink

Hello all, I'm starting with kepler and I was wondering where I can find mod_lua for kepler 1.1 (with support for lua 5.1) for apache 2.2. If possible with windows binaries, if not with instructions on how to compile it (please be very specific, I'm a noob). The default Kepler 1.1 installation doesn't come with it and I'm not sure if mod_lua.so from Kepler 1.0 will work. Many thanks,

Daniel

-- 

Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Bertrand Mansion

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink
On Mon, Apr 13, 2009 at 6:37 AM, Hoffmann Zei <[hidden email]> wrote:
> Hello all, I'm starting with kepler and I was wondering where I can find
> mod_lua for kepler 1.1 (with support for lua 5.1) for apache 2.2. If
> possible with windows binaries, if not with instructions on how to compile
> it (please be very specific, I'm a noob). The default Kepler 1.1
> installation doesn't come with it and I'm not sure if mod_lua.so from Kepler
> 1.0 will work. Many thanks,

Hi,

There are 2 different versions of mod_lua. The old one and the new
one, which used to be called mod_wombat. I don't know the old one very
well, it was developed outside of the Apache project, but the code
looked good last time I reviewed it

The new one is being developed by the Apache community and can be
found in the Apache subversion repository. It only works with Apache
2.3+ and will be part of Apache 2.4. It is still (not even) alpha and
there are some important features which are not supported yet. I think
only the old one would work with Kepler.

I managed to port the new mod_lua to Apache 2.2 without too much
efforts on OSX and Linux, and Corsix gives hints on how to do it on
Windows
http://www.corsix.org/content/mod-lua-win32
Writing a WSAPI adapter for the new mod_lua would be a piece of cake I
think, but you would need acces to the CGI variables which are usually
stored in request.subprocess_env and are not currently populated in
current version of mod_lua (I maintain my own version for that).

Conclusion : Given the current state of the new mod_lua, I suggest
that you use fastcgi instead if you want to use Kepler, unless you
want to hack mod_lua :) I think I read somewhere that the old mod_lua
would not be supported in Kepler anymore, but this needs confirmation.

--
Bertrand Mansion
Mamasam

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Andre Carregal

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink
On Mon, Apr 13, 2009 at 8:03 AM, Bertrand Mansion <[hidden email]> wrote:
> ...
> Conclusion : Given the current state of the new mod_lua, I suggest
> that you use fastcgi instead if you want to use Kepler, unless you
> want to hack mod_lua :) I think I read somewhere that the old mod_lua
> would not be supported in Kepler anymore, but this needs confirmation.

Confirmed! :o)

As soon as mod_wombat/mod_lua gets stable enough, someone can
implement the WSAPI layer over it. OTOH, your observation about
request.subprocess_env got me a bit curious. Does anyone know if those
values are going to be available as CGI vars in the final version of
mod_lua?

André

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Bertrand Mansion

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink
On Mon, Apr 13, 2009 at 10:52 PM, Andre Carregal
<[hidden email]> wrote:

> On Mon, Apr 13, 2009 at 8:03 AM, Bertrand Mansion <[hidden email]> wrote:
>> ...
>> Conclusion : Given the current state of the new mod_lua, I suggest
>> that you use fastcgi instead if you want to use Kepler, unless you
>> want to hack mod_lua :) I think I read somewhere that the old mod_lua
>> would not be supported in Kepler anymore, but this needs confirmation.
>
> Confirmed! :o)
>
> As soon as mod_wombat/mod_lua gets stable enough, someone can
> implement the WSAPI layer over it. OTOH, your observation about
> request.subprocess_env got me a bit curious. Does anyone know if those
> values are going to be available as CGI vars in the final version of
> mod_lua?

Here is my patch to have these CGI values in subprocess_env:
http://mamasam.indefero.net/p/modlua/source/commit/aa279fca41c69c2307a3a10ad43f1b073fe9ec1f/
As you will see, it is very easy to add these values so I am pretty
sure it will be added to mod_lua once Apache people have the time to
take care of this module.


--
Bertrand Mansion
Mamasam

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Andre Carregal

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink
On Mon, Apr 13, 2009 at 6:06 PM, Bertrand Mansion <[hidden email]> wrote:
> Here is my patch to have these CGI values in subprocess_env:
> http://mamasam.indefero.net/p/modlua/source/commit/aa279fca41c69c2307a3a10ad43f1b073fe9ec1f/
> As you will see, it is very easy to add these values so I am pretty
> sure it will be added to mod_lua once Apache people have the time to
> take care of this module.

I see. Thanks for the prompt clarification.

André

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Hoffmann Zei

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink

Thanks for the responses, but how exactly do I install kepler with fastcgi? The documentation on kepler website is too confusing and incomplete:

"FastCGI is also a good option for Kepler on an Apache 2 Server. You need to have mod_fcgid, the new FastCGI module for Apache. To use Kepler as a FastCGI application, you have to configure Apache to associate .lua and .lp extensions with the Kepler FastCGI launcher. Edit the Apache configuration file to include the following:

<IfModule mod_fcgid.c>
SocketPath c:\Kepler\1.1\tmp\kepler-fcgi
AddHandler fcgid-script .lua .lp
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lua
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lp
</IfModule>

"

I can't find that fastcgi file on my kepler instalation

Using luarocks I found the kepler-fastcgi rocks, but it installs 2 files: cgilua-fastcgi.exe and op-fastcgi.exe. Which one should I use? And how should I configure my apache configuration file?


 


On Mon, Apr 13, 2009 at 6:13 PM, Andre Carregal <[hidden email]> wrote:
On Mon, Apr 13, 2009 at 6:06 PM, Bertrand Mansion <[hidden email]> wrote:
> Here is my patch to have these CGI values in subprocess_env:
> http://mamasam.indefero.net/p/modlua/source/commit/aa279fca41c69c2307a3a10ad43f1b073fe9ec1f/
> As you will see, it is very easy to add these values so I am pretty
> sure it will be added to mod_lua once Apache people have the time to
> take care of this module.

I see. Thanks for the prompt clarification.

André

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/



--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Fabio Mascarenhas

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink
Hi,

Just replace c:\Kepler\1.1\bin\fastcgi with the full path for cgilua-fastcgi.exe, this is the FastCGI launcher on Windows. BTW, did you check the new docs at www.keplerproject.org? Google is still indexing the old site, and the old PmWiki html files are still around...

--
Fabio Mascarenhas


On Sat, Apr 18, 2009 at 7:28 PM, Hoffmann Zei <[hidden email]> wrote:

Thanks for the responses, but how exactly do I install kepler with fastcgi? The documentation on kepler website is too confusing and incomplete:

"FastCGI is also a good option for Kepler on an Apache 2 Server. You need to have mod_fcgid, the new FastCGI module for Apache. To use Kepler as a FastCGI application, you have to configure Apache to associate .lua and .lp extensions with the Kepler FastCGI launcher. Edit the Apache configuration file to include the following:

<IfModule mod_fcgid.c>
SocketPath c:\Kepler\1.1\tmp\kepler-fcgi
AddHandler fcgid-script .lua .lp
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lua
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lp
</IfModule>

"

I can't find that fastcgi file on my kepler instalation

Using luarocks I found the kepler-fastcgi rocks, but it installs 2 files: cgilua-fastcgi.exe and op-fastcgi.exe. Which one should I use? And how should I configure my apache configuration file?


 


On Mon, Apr 13, 2009 at 6:13 PM, Andre Carregal <[hidden email]> wrote:
On Mon, Apr 13, 2009 at 6:06 PM, Bertrand Mansion <[hidden email]> wrote:
> Here is my patch to have these CGI values in subprocess_env:
> http://mamasam.indefero.net/p/modlua/source/commit/aa279fca41c69c2307a3a10ad43f1b073fe9ec1f/
> As you will see, it is very easy to add these values so I am pretty
> sure it will be added to mod_lua once Apache people have the time to
> take care of this module.

I see. Thanks for the prompt clarification.

André

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/



--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/


_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Hoffmann Zei

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink

Hello and thanks for the help

The new docs are even more incomplete than the old ones. Now I'm having some apache problems. For some reason my apache instalation didn't came with the following line in httpd.conf by default:

LoadModule mod_fcgid modules/mod_fcgid.so

But now that it is there when I start apache I get the following error message:

Syntax error on line 529 of /apache/conf/httpd.conf: Can't load API module structure 'mod_fcgid' in file /apache/modules/fcgid.so: No error


This is how my httpd.conf looks like (the first line is line 529):

LoadModule mod_fcgid modules/mod_fcgid.so
<IfModule mod_fcgid>
  SocketPath C:/Kepler/tmp/kepler-fcgi
AddHandler fcgid-script .lua .lp
  FCGIWrapper C:/Kepler/bin/cgilua-fcgi.exe .lua
  FCGIWrapper C:/Kepler/bin/cgilua-fcgi.exe .lp
</IfModule>


What does that error mean? I need to build the fastcgi module from scratch?


On Mon, Apr 20, 2009 at 4:20 PM, Fabio Mascarenhas <[hidden email]> wrote:
Hi,

Just replace c:\Kepler\1.1\bin\fastcgi with the full path for cgilua-fastcgi.exe, this is the FastCGI launcher on Windows. BTW, did you check the new docs at www.keplerproject.org? Google is still indexing the old site, and the old PmWiki html files are still around...

--
Fabio Mascarenhas



On Sat, Apr 18, 2009 at 7:28 PM, Hoffmann Zei <[hidden email]> wrote:

Thanks for the responses, but how exactly do I install kepler with fastcgi? The documentation on kepler website is too confusing and incomplete:

"FastCGI is also a good option for Kepler on an Apache 2 Server. You need to have mod_fcgid, the new FastCGI module for Apache. To use Kepler as a FastCGI application, you have to configure Apache to associate .lua and .lp extensions with the Kepler FastCGI launcher. Edit the Apache configuration file to include the following:

<IfModule mod_fcgid.c>
SocketPath c:\Kepler\1.1\tmp\kepler-fcgi
AddHandler fcgid-script .lua .lp
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lua
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lp
</IfModule>

"

I can't find that fastcgi file on my kepler instalation

Using luarocks I found the kepler-fastcgi rocks, but it installs 2 files: cgilua-fastcgi.exe and op-fastcgi.exe. Which one should I use? And how should I configure my apache configuration file?


 


On Mon, Apr 13, 2009 at 6:13 PM, Andre Carregal <[hidden email]> wrote:
On Mon, Apr 13, 2009 at 6:06 PM, Bertrand Mansion <[hidden email]> wrote:
> Here is my patch to have these CGI values in subprocess_env:
> http://mamasam.indefero.net/p/modlua/source/commit/aa279fca41c69c2307a3a10ad43f1b073fe9ec1f/
> As you will see, it is very easy to add these values so I am pretty
> sure it will be added to mod_lua once Apache people have the time to
> take care of this module.

I see. Thanks for the prompt clarification.

André

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/



--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/


_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/



--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/
Fabio Mascarenhas

Re: mod_lua for kepler 1.1

Reply Threaded More More options
Print post
Permalink
Hi,

You can get a Windows binary for mod_fcgid at this link: http://www.apachelounge.com/download/

No need for the SocketPath directive, too.

--
Fabio Mascarenhas



On Mon, Apr 20, 2009 at 6:32 PM, Hoffmann Zei <[hidden email]> wrote:

Hello and thanks for the help

The new docs are even more incomplete than the old ones. Now I'm having some apache problems. For some reason my apache instalation didn't came with the following line in httpd.conf by default:

LoadModule mod_fcgid modules/mod_fcgid.so

But now that it is there when I start apache I get the following error message:

Syntax error on line 529 of /apache/conf/httpd.conf: Can't load API module structure 'mod_fcgid' in file /apache/modules/fcgid.so: No error


This is how my httpd.conf looks like (the first line is line 529):

LoadModule mod_fcgid modules/mod_fcgid.so
<IfModule mod_fcgid>
  SocketPath C:/Kepler/tmp/kepler-fcgi


AddHandler fcgid-script .lua .lp
  FCGIWrapper C:/Kepler/bin/cgilua-fcgi.exe .lua
  FCGIWrapper C:/Kepler/bin/cgilua-fcgi.exe .lp
</IfModule>


What does that error mean? I need to build the fastcgi module from scratch?


On Mon, Apr 20, 2009 at 4:20 PM, Fabio Mascarenhas <[hidden email]> wrote:
Hi,

Just replace c:\Kepler\1.1\bin\fastcgi with the full path for cgilua-fastcgi.exe, this is the FastCGI launcher on Windows. BTW, did you check the new docs at www.keplerproject.org? Google is still indexing the old site, and the old PmWiki html files are still around...

--
Fabio Mascarenhas



On Sat, Apr 18, 2009 at 7:28 PM, Hoffmann Zei <[hidden email]> wrote:

Thanks for the responses, but how exactly do I install kepler with fastcgi? The documentation on kepler website is too confusing and incomplete:

"FastCGI is also a good option for Kepler on an Apache 2 Server. You need to have mod_fcgid, the new FastCGI module for Apache. To use Kepler as a FastCGI application, you have to configure Apache to associate .lua and .lp extensions with the Kepler FastCGI launcher. Edit the Apache configuration file to include the following:

<IfModule mod_fcgid.c>
SocketPath c:\Kepler\1.1\tmp\kepler-fcgi
AddHandler fcgid-script .lua .lp
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lua
FCGIWrapper c:\Kepler\1.1\bin\fastcgi .lp
</IfModule>

"

I can't find that fastcgi file on my kepler instalation

Using luarocks I found the kepler-fastcgi rocks, but it installs 2 files: cgilua-fastcgi.exe and op-fastcgi.exe. Which one should I use? And how should I configure my apache configuration file?


 


On Mon, Apr 13, 2009 at 6:13 PM, Andre Carregal <[hidden email]> wrote:
On Mon, Apr 13, 2009 at 6:06 PM, Bertrand Mansion <[hidden email]> wrote:
> Here is my patch to have these CGI values in subprocess_env:
> http://mamasam.indefero.net/p/modlua/source/commit/aa279fca41c69c2307a3a10ad43f1b073fe9ec1f/
> As you will see, it is very easy to add these values so I am pretty
> sure it will be added to mod_lua once Apache people have the time to
> take care of this module.

I see. Thanks for the prompt clarification.

André

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/



--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/


_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/



--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer)

_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/


_______________________________________________
Kepler-Project mailing list
[hidden email]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/