• 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-Ghosh Tagged With install php5 apache2

This Article Has Been Shared 369 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 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 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

  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023
  • ESP32 Arduino Water Tank Level Monitoring Using Laser ToF Sensor March 23, 2023
  • Exploring the Benefits and Advantages of Microsoft’s Operating System March 22, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Installing Apache2 With PHP5 and MySQL Easy Guide," in The Customize Windows, May 13, 2013, March 25, 2023, https://thecustomizewindows.com/2013/05/installing-apache2-with-php5-and-mysql-easy-guide/.

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