View Single Post
  #2  
Old 21st May 2013, 16: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:

Code:
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:
Code:
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:
Code:
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:
Code:
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
Code:
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:
Code:
make
nginx -s stop
nginx make install
nginx
Enjoy your new Nginx.

*AUTOMATIC UPDATES CAN BREAK YOUR NGINX
Reply With Quote