• 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 254 Times!

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)

  • 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

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

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

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, February 1, 2023, https://thecustomizewindows.com/2015/09/install-nginx-with-pagespeed-with-one-command-hp-cloud/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT