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!
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, ;)
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.