• 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 PHP5-FPM on HP Cloud

By Abhishek Ghosh December 4, 2014 2:35 am Updated on December 4, 2014

Install Nginx PHP5-FPM on HP Cloud

Advertisement

Here is How To Install Nginx PHP5-FPM on HP Cloud. HP Cloud means HP Helion Public Cloud. It is basically very easy to work with HP Cloud. People fear HP Helion Public Cloud very much. The basic reason possibly is not understanding the basics of Security Group Rules. So, you need to read our previous guide on Router settings, rightly open the Ports (Port 80 and Port 443).

 

Install Nginx PHP5-FPM on HP Cloud : Needs

 

A sane operating system like OS X or any Linux or Unix Like OS. Microsoft Windows users can use PuTTY, but basically Windows is not very safe Operating System. It is practical to dual boot with minimum Ubuntu like easy to use Linux. We are writing while using OS X 10.10 with iTerm2+ZSH+Homebrew. PuTTY and iTerm2 has no difference on running commands on remote server. Neither there is difference in Ubuntu of Rackspace and HP Cloud.

Again, please make Security Group Rules right. If you are using Default, add new Rule to make it looking like :

Advertisement

---

Vim
1
IngressIPv4TCP80 (HTTP)0.0.0.0/0 (CIDR)

This is too wide open settings. Unless you know more, use this settings. Default is a bad name. Change the name to your-name-region like name.

 

Install Nginx PHP5-FPM on HP Cloud : Steps

 

This guide is just a basic nginx, PHP5-FPM setup. Please run this command first :

Vim
1
netstat -natu

If port 80 is not listening, nginx can not open it. Simple. On HP Cloud, OS software based firewall is not much of importance. You can control from one level up. Build an Instance with Ubuntu 14.04 LTS AMD64 Partner Image. 4 GB is great, you can use 2 GB for lesser traffic. Practically, more the number of cores, nginx works more better plus xcache works faster with more RAM.

SSH to the instance. You are not root user, initially using sudo once, do not disturb the installation process. Yet, we are providing the commands with sudo. First, fully update the instance :

Vim
1
2
3
4
sudo apt-get update -y && sudo apt-get upgrade
# check if there is anything suspicious, if not great
# proceed. These lines with # are not commands
sudo apt-get dist-upgrade -y

We are making a web server for running PHP MySQL based web software like WordPress. Run these :

Vim
1
2
3
sudo apt-get install python-software-properties
# if it ask something, accept it
apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php-pear php5-dev php5-imap php5-mcrypt

Run auto-remove to get rid off stuffs not needed :

Vim
1
sudo apt-get autoremove

Install Nginx :

Vim
1
2
3
4
sudo add-apt-repository ppa:nginx/stable
# accept anything if asked
sudo apt-get update -y
sudo apt-get install nginx

Reboot the instance once as we have upgraded lot of stuffs :

Vim
1
sudo reboot

Again SSH to the instance. Install these things :

Vim
1
apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-xcache

Yeah, php5-curl and php5-gd are repeats. Running commands twice will not harm. php5-fpm has installed, still we will run :

Vim
1
sudo apt-get install php5-fpm php5-gd libssh2-php mysql-client

I want a separate database server, so only mysql-client for testing connection like work. If you want to install full MySQL, the steps will be like our guides on Rackspace. Perform a search on this website. Open your IP address and default Nginx webpage will show up. Run this command :

Vim
1
php -v

If you are facing lot of errors like :

Vim
1
2
3
Cannot adopt OID in UCD-SNMP-MIB: ucdShutdown ::= { ucdTraps 2 }
Cannot adopt OID in UCD-SNMP-MIB: ucdStart ::= { ucdTraps 1 }
Cannot adopt OID in LM-SENSORS-MIB: lmMiscSensorsTable ::= { lmSensors 5 }

then you need to install :

Install Nginx PHP5-FPM on HP Cloud

Vim
1
sudo apt-get install snmp

Run :

Vim
1
php -v

You’ll get a clean output like :

Vim
1
2
3
4
5
6
7
8
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo

snmp should get installed but basically it does not get installed in expected way; it depends on vendor, so we install it later. I kept this for record :

Vim
1
http://www.webpagetest.org/result/141203_ZV_1532/1/details/

117 ms is the response time. Its very fast. On other good hosts, you’ll get response time like this with huge tweak :

Vim
1
http://www.webpagetest.org/result/141203_SM_156S/1/details/

Tagged With cannot adopt oid in ucd snmp mib
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 PHP5-FPM on 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.

  • Install WordPress on HP Cloud (Ubuntu, Nginx)

    Here is step by step guide to install WordPress on HP Cloud with one Database Server and one Web server on Ubuntu and Nginx PHP5-FPM platform.

  • Ubuntu Nginx PHP5-FPM UNIX Socket Configuration

    Some Extra Steps Needed to Perform in Ubuntu for the Right Nginx PHP5-FPM UNIX Socket Configuration. Else You’ll Face Random 502, 504 Error.

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