# Nginx Pagespeed Modsecurity Pre-compile

URL: https://sohaib.com/blog/nginx-pagespeed-modsecurity-and-all-other-modules-precompile
Author: Sohaib Khan
Published: Jul 9, 2015
Updated: Sep 8, 2026
Category: Cloud & Infrastructure

> I've pre-compile nginx 1.6.2, with the following modules. You will get Google Pagespeed, ModSecurity and all your Gzip compression modules, I've compile this for the Ubuntu 12.04 x64 & Ubuntu 14.04 x64. Let's get…

I've pre-compile **nginx** 1.6.2, with the following modules. You will get Google Pagespeed, Mod\_Security and all your Gzip compression modules, I've compile this for the Ubuntu 12.04 x64 & Ubuntu 14.04 x64. Let's get started. Download precompile [Nginx 1.6.2 from here](https://www.dropbox.com/s/a8be1vcwi9btzlo/package.zip?dl=0) I am assuming you've already installed your Ubuntu OS, once that's installed simply run the following command apt-get update

```bash
apt-get install libaprutil1
```

Finally , its time to install _nginx_ deb package. Once you unzip the file you will see two folders one is for **Ubuntu 12.04 and another one is for 14.04 both are for x64 bit system.** Now install the the package, based on your Ubuntu Os version, Please pay proper attention below in order have a perfect

# nginx server.

dpkg - i filename.deb "" That's all folks "" You are all set & done, verify nginx by typing nginx -V nginx version: nginx/1.6.2 built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 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/nginx-1.6.2/src/modules/ngx\_pagespeed-release-1.9.32.1-beta --add-module=/work/nginx/nginx-1.6.2/src/modules/ModSecurity-2.8.0/nginx/modsecurity --with-ipv6
