• Home
  • Archive
  • Tools
  • Contact Us
  • Forum

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

 

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.

Advertisement

---

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-Ghosh
Facebook Twitter Google+ Pinterest

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Google Plus - Abhishek Ghosh1 and on Twitter - @AbhishekCTRL.

Follow the Author of this article :

13.7K+ Followers 18.7K+ Followers 2.5K+ Followers 1.5K Followers

Here’s what we’ve got for you which might like :

Articles Related to Installing Apache2 With PHP5 and MySQL Easy Guide

  • Cloud Computing : Your Concerns and Thoughts of Richard Stallman

    Cloud Computing as terminology raises the eyebrows of some users who are associated with academics and computing for many years. Let us discuss on the topic.

  • Red Hat OpenShift PaaS : Smart Guide to Host Your App

    Red Hat OpenShift PaaS has pre-configured one click installers for Frameworks, one click installers for WordPress, Drupal. Free for 50k visitors per month.

  • Self Hosted WordPress on Cloud Server for Dummies

    Self Hosted WordPress is itself a scary phrase to a non-tech person and add Cloud Server on it. Here is Very Easy Guide to under Self Hosted WordPress.

  • Cloud Computing Grown as There Was Real Demand From The Customers

    Cloud Computing grown as there was a clear cut demand from the consumer. Most users who cares for quality, actually went mad with the traditional web hosts. The crap graphics of cPanel, increasing bill for Virtual Private Server and Dedicated server, “your problem you will solve” type of mentality, usage of worst possible hardwares, all […]

  • Linux : Basics About Unix-like OS

    Linux referred to the usually free, unix-like Operating systems based on the Linux kernel and is GNU GPL based software. Licensing of the Linux kernel is under GNU GPL.

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 Google+ or Twitter to join the conversation right now!

If you want to Advertise on our Article or want Business Partnership, 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

All articles of this Website are fully Free to read. Here are some, which possibly you'll like to read! Do not hesitate to contact us for any concern.

Contact Us

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

Recent Posts

  • Difference Between Microservices and API Based Cloud Services April 20, 2018
  • Example of Using IBM Watson For Text Analysis with Google Docs April 20, 2018
  • Arduino WiFi Control of LED From Web Browser April 19, 2018
  • Fix Problems & Issues of Yoast SEO WordPress Plugin April 19, 2018
  • Extra Battery, Inverter For Car For DIY Electronics Car Automation April 18, 2018

About This Article

Title: Installing Apache2 With PHP5 and MySQL Easy Guide
May 13, 2013
Author: Abhishek Ghosh
Subjects: Apple, Cloud Computing, Computer and Internet, General, Linux, Web Hosting
Is Part Of:

TheCustomizeWindows, May 13, 2013, Vol.1(01),
p.1–39075 [IoT Ready Journal]

Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher: jima.in

Cite this article as: Abhishek Ghosh, "Installing Apache2 With PHP5 and MySQL Easy Guide," in The Customize Windows, May 13, 2013, April 21, 2018, https://thecustomizewindows.com/2013/05/installing-apache2-with-php5-and-mysql-easy-guide/.
This website uses cookies.

Read Cookie Policy

Contents are copyright protected and reproduction demands our permission.


PC users can consult Corrine Chorney for Security.

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

web analysis

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

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