Install LAMP on ubuntu

LAMP stands for 


  1. Linux
  2. Apache
  3. MySQL
  4. PHP
so it is a combination of above Softwares. we will start installing one by one.

  • Apache

Open Terminal and type
sudo apt-get install apache2
To check whether it is installed or not. Go to browser and type localhost in the address bar. if you get a window of SUCCESS of installation of apache then it is installed completely.


  • MySQL

Open Terminal and type
sudo apt-get install mysql-server

During installation, it will ask you for the password. 

REMEMBER THAT PASSWORD.

  • PHP

Open terminal and type
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql




To check whether PHP is installed or not


Open terminal and type
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'



if your PHPMyAdmin is not working then click here.


or

you can install LAMP using one command as

sudo apt-get install lamp-server^

sudo apt-get install phpmyadmin

first command will install apache php and MySQl and second command will install all the dependencies required for phpmyadmin.

Related Posts Plugin for WordPress, Blogger...