[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: CGILua on Apache
- From: Tomas <tomas@...>
- Date: Thu, 9 Feb 2006 10:38:23 -0200 (BRST)
Hi David
I'm not sure where to look. Nothing in /var/log/httpd is helpful; error.log
contains nothing useful.
I'm not sure exactly what needs to be done to set this up. For instance, I'm
not sure where mod2.lua is supposed to be. At the moment, it's in
$(LUA_DIR)/cgilua/mod2.lua which appears to be the default.
mod2.lua is loaded mod_lua.so. This file can be included in
the mod_lua.c if INCLUDE_LUA is defined (check the config file in Kepler's
root directory). If it is not included, you should indicate where it is
located with LuaMain Apache directive (note that this directory is only
available if INCLUDE_LUA was NOT defined while compiling the module).
If you have not included mod2.lua, you can put some code in it
to be sure it is being loaded (like opening a file or writting to stderr,
which should write to the default Apache log file -- not the log file
defined in VIrtualHost's).
I modified the
mod2 makefile to use liblua50.a from LuaBinaries R2 (as liblua.a is the stock
distribution).
I think we had problems trying to link to a static library
but I can't remember if it was on Linux or on MacOS X (I think it was on
MacOS X)...
Hope it helps,
Tomas