Report this

What is the reason for this report?

Google Pagespeed on existent Nginx

Posted on June 25, 2014

I’m not an experienced Linux user, and I was trying to get google pagespeed working with an existent nginx sever.

I know I must recompile nginx with the module, but I couldn’t get it working, all I had at the moment is a production server, so after some hours trying I’ve had to give up and get the server live again with a simple nginx install.

I had this page as a guide.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello erick.

You can find some useful information in the official documentation of PageSpeed in Google Developer Channel: <a href=“https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source?hl=ja”>https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source?hl=ja</a>

Also, we have a basic tutorial from DO community: <a href=“https://www.digitalocean.com/community/tutorials/how-to-add-ngx_pagespeed-module-to-nginx-in-debian-wheezy”>https://www.digitalocean.com/community/tutorials/how-to-add-ngx_pagespeed-module-to-nginx-in-debian-wheezy</a>

Fell free to follow this tutorials. For a better result, i recoomend to study linux basics and learn how to work with folder, permissions, scripting and so on… You can archive better results for your needs.

Hey Erick!

If you could share the actual problems that you’re running into, we’d probably be better able to help. Were there errors when you were trying to compile it? Are you have problems with configuration? Let us know!

Hi astarr,

I could recompile w/o errors, but it didnt replace the running nginx, I’ve tried uninstall the nginx and recompile/install, but it didn’t install, I wasn’t able to start/stop etc.

Do I need add args on this line?

./configure --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta

I got the args from the running one and add to it.

Thanks for the reply, ;)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.