Install LAMP Stack in minimum commands

LAMP Stack means :Linux, Apache, MySQL and PHP.

Run the following commands one by one in the terminal to install the whole LAMP Stack:

sudo apt-get update

sudo apt-get install lamp-server^

echo “ServerName localhost” | sudo tee /etc/apache2/conf-available/fqdn.conf && sudo a2enconf fqdn

php -r ‘echo “\n\nYour PHP installation is working fine.\n\n\n”;’

sudo apt-get install phpmyadmin

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf

sudo a2enconf phpmyadmin

sudo /etc/init.d/apache2 reload

Read More