Old 19th May 2013, 14:10
Kubek Kubek is offline
Junior Member
Join Date: Aug 2012
Posts: 27
Thanks: 11
Thanked 1 Time in 1 Post
Question Adding ngx_lua to nginx

Hi, I just followed the The Perfect Server - Debian Wheezy (nginx, BIND, Dovecot, ISPConfig 3).

Now I wonder how can I add the ngx_lua module to nginx.
I want to implement advanced caching mechanism right in nginx.

I think I need to recompile the nginx with ngx_lua module but i am not sure how can i do it. I do not want to break anything. So far I found these instructions, but I don't know where nginx have to be installed.

Thank you for help

Last edited by Kubek; 19th May 2013 at 14:12.
Reply With Quote
Sponsored Links
Old 21st May 2013, 17:45
Kubek Kubek is offline
Junior Member
Join Date: Aug 2012
Posts: 27
Thanks: 11
Thanked 1 Time in 1 Post
Default How to

I finally done it. Only few seconds downtime.
So here are some instructions for other people

1. Download and install LuaJIT:

cd /tmp
wget http://luajit.org/download/LuaJIT-2.0.1.tar.gz
tar -xzvf LuaJIT-2.0.1.tar.gz
cd LuaJIT-2.0.1.tar.gz
make && sudo make install
It will automatically install LuaJIT to /usr/local/

2. Download the latest version of the ngx_devel_kit (NDK) module:
cd /tmp
wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.18.tar.gz
tar -xzvf v0.2.18.tar.gz
3. Download the latest version of ngx_lua:
cd /tmp
wget https://github.com/chaoslawful/lua-nginx-module/archive/v0.8.2rc1.tar.gz
tar -xzvf v0.8.2rc1.tar.gz
4. Download the latest version of Nginx:
cd /tmp
wget http://nginx.org/download/nginx-1.4.1.tar.gz
tar -xzcf nginx-1.4.1.tar.gz
5. Prepare Nginx with module
cd nginx-1.4.1.tar.gz
//Add here everything you have in nginx -V
./configure --add-module=/path/to/ngx_devel_kit
./configure --add-module=/path/to/lua-nginx-module
6. Stop Nginx, install, Start new Nginx:
nginx -s stop
nginx make install
Enjoy your new Nginx.

Reply With Quote
The Following User Says Thank You to Kubek For This Useful Post:
till (21st May 2013)


ispconfig 3, lua, luajit, nginx

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help convert htaccess to nginx ababneh HOWTO-Related Questions 6 5th April 2013 01:19
nginx Reverse Proxy on Separate Server from Apache atjensen11 HOWTO-Related Questions 2 8th September 2012 23:26
A Working Nginx Catchall with ISPConfig 3. renders Tips/Tricks/Mods 4 15th April 2011 22:53
Strato Server - Restoring with SystemImager popper2001 HOWTO-Related Questions 5 28th July 2007 11:18
Creating image with Systemimager cuongtim HOWTO-Related Questions 3 18th November 2006 14:55

All times are GMT +2. The time now is 17:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.