• 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 » Installing Nginx With PHP5, MySQL on Rackspace Cloud Server

By Abhishek Ghosh August 26, 2012 12:03 pm Updated on August 26, 2012

Installing Nginx With PHP5, MySQL on Rackspace Cloud Server

Advertisement

Installing Nginx With PHP5, MySQL on Rackspace Cloud Server using Debian Sqeeeze needs only few steps. This guide is for Next Generation Cloud Servers. If you need for WordPress, you can follow this guide keeping in mind it is for old generation Cloud, so the screenshots are different from this one. And you can read about nginx HTTP Server Basics if you are relatively new to follow this guide for installing Nginx With PHP5, MySQL.

 

Factors those are considered as taken in this guide on Installing Nginx With PHP5, MySQL on Rackspace Cloud Server

 

On this guide for installing Nginx With PHP5, MySQL on Rackspace Cloud Server, we are taking that you are not a beginner and know about Command Line Interface and basics of how to use PuTTY on Windows. This is actually for the developers who want use and configure the server for other usages.

Its obvious that, you can install WordPress or Magento like CMS with few extra steps.

Advertisement

---

 

Steps for Installing Nginx With PHP5, MySQL on Rackspace Cloud Server

 

Spin up a server from your new generation Rackspace Cloud Control Panel, we will use Debian Squeeze  :

 

Installing Nginx With PHP5, MySQL on Rackspace Cloud Server

Copy Paste the password on any text editor like notepad. Please use PuTTY for Windows OS and terminal for the others. Login as root and use that password and in case of PuTTY it will look like this :

 

Installing Nginx With PHP5, MySQL

Perform an update :

 

Vim
1
apt-get update

 

Within few minutes it will be updated. I will suggest to do an restart from Control Panel. It is not mandatory.

 

Install the MySQL parts :

 

Vim
1
apt-get install mysql-server mysql-client

 

You will be prompted for an password. Use your own password.

 

installing MySQL debian

 

 

Next install nginx :

 

Vim
1
apt-get install nginx

 

After nginx is installed, start it :

 

Vim
1
/etc/init.d/nginx start

 

Create www folder and assign as public folder :

 

Vim
1
mkdir /var/www

 

Vim
1
chown www-data:www-data /var/www

 

Install PHP packages :

 

apt-get install php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

 

Open php.ini :

 

Vim
1
vi /etc/php5/cgi/php.ini

 

And, make  cgi.fix_pathinfo=1 as active :

 

make cgi.fix_pathinfo=1 as active

 

You can now login via SFTP software like WinSCP and go to /var/www/ and create an file named index.html to test with your IP :

 

light httpd

You can open that index.ligttpd.html file and paste its content in the index.html file. Open your IP on your Browser, ot should show what you have done with index.html file. In our case it is the content of  index.ligttpd.html file :

 

index-ligttpd-html

 

We have not done few configurations on this guide for Installing Nginx With PHP5, MySQL on Rackspace Cloud Server as the guide is nonspecific and is dependent on your usage. PHP FastCGI daemon is not listening on port 9000 – keep it in mind.

 

/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid

 

This will make it listening. But you need to add it to rc.local to make it automated after reboot process.

 

Signature
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 Installing Nginx With PHP5, MySQL on Rackspace Cloud Server

  • 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.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

  • Install WordPress on Nginx With HHVM on Ubuntu Cloud Server

    Here is Step by Step Guide to Install WordPress on Nginx With HHVM on Ubuntu Cloud Server. This simple and most easy standalone HHVM only guide. We talked about HipHop Virtual Machine or HHVM in order article. Normally, with Nginx, we use PHP5-FPM. This guide is how to install WordPress on Nginx with HHVM on […]

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

Comments

  1. AvatarAdam Bartlett says

    August 28, 2012 at 9:15 am

    Basics of how to use PuTTY on Windows ?

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…

 

vpsdime

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

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

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

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