How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Amazon EC2 instance

Step by step guide on installing LAMP - Apache, MySQL, PHP (LAMP) stack on Amazon EC2 instance using Taskel.

If you are familar with Installing LAMP and configuring your server, like seperatly installing Apache, MySQL and PHP, you can skip this guid. If you want to speed up LAMP installation with few clicks and selection, you can follow this tutorial.

We will be using Tasksel to complete our Linux, Apache, MySQL, PHP (LAMP) stack installation on Amazon EC2 instance.


What is Taskel?


Tasksel package provides a simple interface for users to configure their system to perform a specific task. Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated "task" onto your system. This program is used during the installation process, but users can also use tasksel at any time. 


Installation


command-line:
1. sudo apt-get update
2. sudo apt-get install tasksel


Usage


To run tasksel from the command line, type:

sudo tasksel



Tasksel menu - sample image


Installing LAMP with Taskel


  1. Run Sudo taskel
  2. Choose Software to install - LAMP Server, OK. 
  3. Configure MySQL installation
  4. Set MySQL root password
  5. Confirm root passsword
  6. Confirm LAMP installation


   To Check PHP Version


   php -v


   To Check MySQL


   mysql -u root -p // password




Back to Tutorials Next Tutorial