Installing ngx_pagespeed with nginx 1.6.2 (Backport) on debian 7 (wheezy)

I am struggling to install nginx 1.6.2 with module ngx_pagespeed 1.9.32.1-beta

Can anyone please help me to install this on my debian 7.

Any working tutorial i have tried

https://www.digitalocean.com/community/tutorials/how-to-add-ngx_pagespeed-module-to-nginx-in-debian-wheezy

Adding PageSpeed Module to installed nginx

but no luck.

Please help

Answer

Instead of manually compiling Nginx with pagespeed, it will be a lot easier to use the precompiled package from Dotdeb Repo. This is how you can easily do this:

1) Add dotdeb Repo to your sources list

2) Add the GPG key

3) Update and Upgrade apt-get

4) Install Nginx with pagespeed compiled package like this (this will install both nginx, pagespeed and many other modules with it):

sudo aptitude install nginx-extras

5) Add your Nginx Configurations to nginx.conf and VHost files

6) Configure Pagespeed and add them to the VHost files

7) Create Symbolic Link of VHost Configuration file in sites-enabled folder

8) Reload Nginx

That’s pretty much it. Since you are using Debian 7 it is much simpler installing nginx-extras package from DotDeb repo as it has many modules compiled together already and its just a 1 step installation to install them all. Dotdeb also have the latest versions available in their repo.

Attribution
Source : Link , Question Author : paul Watson , Answer Author :
Neel

Leave a Comment