Upgrade / Compile / Install Latest Nginx on armfh (Raspberry Pi)

Pi) (Raspberry armfh on Nginx Latest Install / Compile / Upgrade

This guide shows you how to upgrade your nginx to the latest version.

1. First get requiered libs:

apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

2. then get the latest version from here:

wget http://nginx.org/download/nginx-1.X.X.tar.gz

3. Extract Files to current folder.

4. go in extracted root directory and type:

./configure --prefix=/etc/nginx --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module --with.sha1=/usr/include/openssl --with-md5=/usr/include/openssl --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/log/nginx/nginx.pid

5. last step:

make && make install

6. finished

 

Here is a list  for configuring with more parameters:

http://nginx.org/en/docs/configure.html



Comments are closed