Comments on How to build nginx with Google PageSpeed module on Debian 8 (Jessie)

This tutorial explains how to build nginx with the latest version of the Google PageSpeed (nginx_pagespeed) module on Debian Jessie. The PageSpeed module applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) and therefore speeds up your web site and reduces load times.

7 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: alex

Thank your. But no deside problem with nginx. Syncerley your.

By: natanfelles

Hello. When I doing apt-get update + apt-get upgrade the nginx is breaking saying:

nginx: [emerg] unknown directive "pagespeed" in /etc/nginx/nginx.conf:67

It's happens only on upgrade.

By: DonMcCoy

Hi natan,of course, it will happen on upgrade, when you upgrade your package you are installing the newer version against the older version (which you have builded yourself with ngx_pagespeed module), and thus the directive of "pagespeed on;" is no longer know to nginx as he don't have it's module (ngx_pagespeed) anymore.so whenever you upgrade you should rebuiled nginx the newer with the same process.

By: Alex

Thnkx for article.

edit please

In that file you will find three configure_flags sections where the line:

 --add-module=$(MODULESDIR)/ngx_pagespeed \

By: Iman

After I do this instructions,

when I try to apt-get upgrade I get error:

Setting up nginx-full (1.6.2-5+deb8u2+b1) ...Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.invoke-rc.d: initscript nginx, action "start" failed.dpkg: error processing package nginx-full (--configure): subprocess installed post-installation script returned error exit status 1Errors were encountered while processing: nginx-fullE: Sub-process /usr/bin/dpkg returned an error code (1)

 

By: DarkMaster

This is an excellent write up! I had many difficutlies but got it all sorted out once I calmed down and started to read and not blindly follow instructions but rather compared them with new versions and statements that system provided me with! Still, could not do it without this! Cheers!

By: fbarcenas

Will this be updated for Buster?