LAMP stands for
- Linux
- Apache
- MySQL
- 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 apache2To 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
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.