• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Install Nginx with pagespeed With One Command (HP Cloud)

By Abhishek Ghosh September 29, 2015 9:52 pm Updated on September 29, 2015

Install Nginx with pagespeed With One Command (HP Cloud)

Advertisement

If You Use Debian Jessie, You Can Install Nginx with pagespeed With One Command Without the Need to Build From Source. Here is For HP Cloud. Previously, we talked about installing Nginx Cache Purge module in one command, here is another easy way for avoiding building from source. It is Nginx-Extras for Debian Jessie and the source is dot deb.

 

Install Nginx with pagespeed With One Command : HP Cloud Vs Non-HP Cloud

 

We tested with HP Helion Cloud’s Debian Jessie. It is not possible to say whether your hosting provider will supply a custom distribution which may not work as intended. This Google pagespeed does not need any special command to start or stop – restarting nginx does the work. Here is an example screenshot of the header after you’ll complete this guide :

Install Nginx with pagespeed With One Command (HP Cloud)

 

Steps to Install Nginx with pagespeed With One Command on HP Cloud, Debian

 

Add dot deb to your sources.list file, open it first :

Advertisement

---

Vim
1
nano /etc/apt/sources.list

Add these two lines :

Vim
1
2
deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all

If you are using other version than Jessie, you should read here :

Vim
1
https://www.dotdeb.org/instructions/

Fetch and install GNUPG :

Vim
1
2
wget https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg

Run update & upgrade :

Vim
1
apt update -y && apt upgrade

Now install Nginx :

Vim
1
sudo apt-get install nginx-extras

After installation, if you run nginx -V you will get a huge output, we are making it smaller here :

Vim
1
2
3
4
5
6
7
8
9
10
nginx version: nginx/1.8.0
built with OpenSSL 1.0.1k 8 Jan 2015
TLS SNI support enabled
...
--add-module=/usr/src/builddir/debian/modules/headers-more-nginx-module
--add-module=/usr/src/builddir/debian/modules/nginx-cache-purge
--add-module=/usr/src/builddir/debian/modules/nginx-push-stream-module
--add-module=/usr/src/builddir/debian/modules/nginx-upload-progress
--add-module=/usr/src/builddir/debian/modules/ngx_pagespeed
...

Now open /etc/nginx/nginx.conf file and add these two lines (before any vhosts, after gzip stanza for example) :

Vim
1
2
pagespeed on;
pagespeed FileCachePath /var/ngx_pagespeed_cache;

Create /var/ngx_pagespeed_cache and set permission :

Vim
1
2
mkdir -p /var/ngx_pagespeed_cache
chown -R www-data:www-data /var/ngx_pagespeed_cache

Restart Nginx :

Vim
1
service nginx restart

Now, run a cURL to check the header (15.125.82.100 is our test IP of the server, you should change it), you can see that X-Page-Speed: 1.9.32.4-7251 of pagespeed :

Vim
1
2
3
4
5
6
7
8
curl -I 15.125.82.100
HTTP/1.1 200 OK
Server: nginx/1.8.0
Content-Type: text/html
Connection: keep-alive
Date: Tue, 29 Sep 2015 20:48:19 GMT
X-Page-Speed: 1.9.32.4-7251
Cache-Control: max-age=0, no-cache

Tagged With Command nginx from package nginx-light (universe) , setup nginx debian jessie
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install Nginx with pagespeed With One Command (HP Cloud)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • Nginx Cache Purge With nginx-extras Apt & Yum Repo

    Those who do not want to build Nginx from source to get Nginx Cache Purge Module Can Test Official apt or yum version of nginx-extras version.

  • Installing WordPress With NGINX on Debian on Rackspace Cloud Server

    Installing WordPress with NGINX web server on Debian Operating System on Rackspace Cloud Server demands some guide vs Apache2.0. Here is step by step guide.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy