• 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 Apache2 With PHP5 and MySQL Easy Guide

By Abhishek Ghosh May 13, 2013 10:37 pm Updated on May 13, 2013

Installing Apache2 With PHP5 and MySQL Easy Guide

Advertisement

Installing Apache2 With PHP5 and MySQL on Rackspace Cloud Server with Ubuntu Linux is written in easy language and as step by step guide for the newbies with all step explanation. Where we need this kind of setup ? this is for most of the CMS, Forum and blogging softwares. WordPress is typical example. But for WordPress we have our old typical guide and obvious how to install WordPress on Rackspace Cloud Server as Video Guide. Firstly, you need to know few basic things which usually confuses any new user for installing Apache2.

 

Installing Apache2 With PHP5 and MySQL : Must Know Basics

 

If you have shifted from a control panel based web hosting like cPanel or Plesk to IaaS like Rackspace Cloud, we recommend to read :

 

  1. Cloud Computing Service Models for understanding the IaaS
  2. Secondly, the basics about Linux
  3. Thirdly, the difference of Server OS and Desktop OS in case of Linux
  4. Fourthly, to clear the fact that cPanel or Plesk are nothing but another web software, in fact we have shown the installation of Free Web Control Panel on the same kind of server where you will be installing Apache2 with PHP5 and MySQL.
  5. Fifth are some basic UNIX commands
  6. At minimum some idea about LAMP server
  7. Understand that we are using a protocol to connect with server that is SSH

 

These are not only enough for Installing Apache2 With PHP5 and MySQL guide but also for any kind of server setup. Actually the programs we use are broadly said as Terminal like in Apple OS X or in Linux. These are not actual Terminals but Terminal Emulators or Terminal Applications. iTerm2 for example is a third party Terminal Emulator for OS X. Windows has no such application by default. So we universally use a great free software named PuTTY. Windows users can read the Handy Guide to PuTTY.

Advertisement

---

 

Installing Apache2 With PHP5 and MySQL : Steps

 

If you watch the initial part of any of our video like how to install WordPress on Rackspace Cloud Server as Video Guide, you will actually view the process to create a server instance. At the next step we launch the Terminal Application and SSH (that is login) to the remote computer.

It is a generally taken fact that almost all guides starts assuming you know to perform the above steps. This obviously creates a big confusion to the new users. This actually avoids the facts of difference of Cloud Server or pure IaaS or Traditional Server or local computer. It becomes generalized. We are taking that, you have done the above steps by watching any such video guide.

So you logged in and asked to save the RSA fingerprint. You will accept it. This is the starting point. Stop following any other previous video guide at this step and only do what is written here.

Usually we update the server :

 

Vim
1
apt-get update

 

So there are clearly three components or softwares we have to install on Ubuntu Linux making the AMP part of LAMP acronym :

 

  1. Apache2 Server Software
  2. MySQL
  3. PHP

 

This Apache2 server software has various extra modules which we can activate, deactivate or install as extra if required. In the same way, PHP has extra dependencies. As normally happens, if we install unnecessary softwares they will consume more RAM. That is why this way of installation through command line is the best way than using a Control Panel based server – it gives more control. The sequence of installing Apache2, PHP and MySQL has no rules but we usually install Apache2 first as pointing towards IP / domain name will show the default webpage – “It Works!” – itself working as a checking point whether we are doing the right things.

Installing Apache2 is easy run by copy pasting this command and hit Enter from your keyboard :

 

Vim
1
apt-get install apache2

 

If you run a plain HTML website nothing more actually needed to be installed – the server will require merely 256-512 MB RAM (with average traffic load). Now if you point  your browser to http://IP address in numeric numbers, you should see the Apache2 placeholder page (It works!).

 

Second is MySQL :

 

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

 

You will be asked to provide a password for the MySQL root user. We can install the PHP part and the required Apache PHP5 module with one combined command :

 

Vim
1
apt-get install php5 libapache2-mod-php5

 

We restart Apache2 at this point :

 

Vim
1
/etc/init.d/apache2 restart

 

We are talking about PHP modules, we must install php5-mysql to get MySQL to support PHP :

 

Vim
1
apt-get install php5-mysql

 

There are many modules like :

 

  1. php5-curl
  2. php5-gd
  3. php5-idn
  4. php-pear
  5. php5-imagick
  6. php5-imap
  7. php5-mcrypt
  8. php5-memcache
  9. php5-ming
  10. php5-ps
  11. php5-pspell
  12. php5-recode
  13. php5-snmp
  14. php5-sqlite
  15. php5-tidy
  16. php5-xmlrpc
  17. php5-xsl

 

Instead of running the commands separately like :
 

Installing-Apache2-With-PHP5-and-MySQL

 

Vim
1
apt-get install php5-curl

 

We can combine them as many (practically so) we want :

 

Vim
1
apt-get install php5-mysql php5-curl php5-gd

 

If you read this guide for installing Apache2 with PHP5 and MySQL, you will never have any fundamental understanding issue.

 

Abhishek-GhoshTagged With install php5 apache2
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 Apache2 With PHP5 and MySQL Easy Guide

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

  • Installing Nginx With PHP5, MySQL on Rackspace Cloud Server

    Installing Nginx With PHP5, MySQL on Rackspace Cloud Server using Debian Sqeeeze needs only few steps. This guide is for Next Generation Cloud Servers.

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