• 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

This Article Has Been Shared 638 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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)

  • Private Cloud Solutions at a glance : How Private Cloud works

    Cloud computing describes the approach that abstracted IT infrastructures where as Private Cloud provides a set of tools with which one can develop cloud services.

  • Free Cloud Storage of 100 GB from Symform : Review

    Free Cloud Storage of 100 GB is offered from Symform either as a customer or as partner. There is not much obligations for using this Free Cloud Storage.

  • Cloud Computing Privacy : Are Service Providers Concerned about?

    Cloud Computing, especially the free public cloud has known issues with the privacy and security of the end users. But, how much the Cloud Service Providers are thoughtful about these?

  • Example of Platform as a Service in Cloud Computing : Heroku Cloud

    Example of Platform as a Service in Cloud Computing can be Heroku Cloud which is Debian based platform supporting Ruby, Java, Node.js,Scala,Clojure, Python,PHP.

  • HP Cloud : Getting Started with Pay as you Go Cloud Computing

    HP Cloud, which is based on OpenCloud platform delivers various Cloud Solution in a Pay as you Go Cloud Computing model like unmanaged Rackspace Cloud Server.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Inertial Navigation System? January 25, 2021
  • What is Miniaturization? January 24, 2021
  • What is Domain-Driven Design (DDD)? January 23, 2021
  • Top 10 Anti Hacking Software for Microsoft Windows January 22, 2021
  • What is Software Modernization? January 21, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Install Nginx with pagespeed With One Command (HP Cloud)," in The Customize Windows, September 29, 2015, January 25, 2021, https://thecustomizewindows.com/2015/09/install-nginx-with-pagespeed-with-one-command-hp-cloud/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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