Nginx Ubuntu Server 15.04 Precompile Pagespeed Module

Great news, I was able to compile Nginx with the following modules for all Ubuntu flavors listed below

nginx version: nginx/1.6.2
built by gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=root --group=root --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_secure_link_module --with-http_stub_status_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_spdy_module --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --add-module=/work/nginx-1.6.2/src/modules/ngx_pagespeed-release-1.9.32.1-beta --add-module=/work/nginx-1.6.2/src/modules/ModSecurity-2.8.0/nginx/modsecurity --with-ipv6

12.04
14.04 & 15.04 all flavors x64bit

Before you install run

apt-get update
apt-get install libaprutil1

Then download the following and install unzip the package.

Look for your flavor Ubuntu version and go inside the directory to install using

dpkg -i filename.deb

Click here to download Nginx

Leave a Reply

Your email address will not be published. Required fields are marked *