Using Kepler with Apache 2.0 in Windows
Using Kepler with Apache 2.0 in Windows involves one the following launchers:
mod_lua
mod_lua allows the use of the Apache native API. This is usually the best option to run Kepler with Apache Server.
The Apache installation directory will be refered here as APACHE_DIR.
In Windows this is by default the diretory
%PROGRAMFILES%\Apache Group\Apache2
. It is also assumed here that
the Kepler installation directory is at <Kepler Home>
.
The first step is to copy all
dependent libraries
to the directory APACHE_DIR\bin
.
Then you have to open the Apache configuration file
(APACHE_DIR\conf\httpd.conf
) on your editor, search for a
series of LoadModule
directives and add the following one:
LoadModule lua_module "C:/Kepler/1.1/bin/mod_lua.so"
At the end of the configuration file add the following section:
# Lua module for Apache2 configuration file. LoadModule lua_module modules/mod_lua.so <IfModule mod_lua.c> # Definition of file types AddHandler lua_module .lua AddHandler lua_module .lp # Definition of Lua module handlers for file types LuaHandler lua_module </IfModule>
Save the file and restart Apache. This configuration will run Kepler
with every .lua
or .lp
file.
If your Apache is a Kepler-only server you can change the DocumentRoot to point to the Kepler web dir. Change the following section in your Apache configuration file.
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # #DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs" DocumentRoot "C:/Kepler/1.1/web"
# # This should be changed to whatever you set DocumentRoot to. # #<Directory "C:/Program Files/Apache Group/Apache2/htdocs"> <Directory "C:/Kepler/1.1/web">
FastCGI
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>
If you want your Apache configured as a Kepler-only server you can change the
DocumentRoot
to point to the Kepler web directory. Change the following
sections in your Apache configuration file:
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "c:\Kepler\1.1\web" ... # # This should be changed to whatever you set DocumentRoot to. # <Directory "c:\Kepler\1.1\web">
For further information check mod_fastcgi documentation.
CGI
Kepler can be used as a standard Apache CGI application.
This part of the documentation is still under development.