Installing LAMP Server in Ubuntu
This blog is all about installing LAMP server in Ubuntu. LAMP (Linux, Apache, MySQL, PHP) stack is a common, free and open-source web stack used for hosting web content in a Linux environment. Many consider it the platform of choice on which to develop and deploy high-performance web apps. If you want to get started building dynamic web applications on your Ubuntu machine, then chances are you will be wanting to use a LAMP stack to build and possibly deploy your work. This blog will show how to install LAMP on Ubuntu.
Follow the steps below to complete your installation.
Use the following command to install it.
$ sudo apt-get install tasksel
Install LAMP using Tasksel
After installing tasksel, let’s install LAMP setup on your Ubuntu.
$ sudo tasksel
Now check on Lamp Server.
Hover on Lamp server and press Space key.
During installation, It will prompt for MySQL root account password. Enter your password and other details(if asked).
Hope your setup is completed.
check by visiting
http://localhost on addressbar of your browser
If you want phpmyadmin for accessing a database, It’s simple as
$ sudo apt-get install PHPMyAdmin
and remember the password you entered. It will be your password for ‘root’ account. After all this restart apache with
$ sudo systemctl restart apache2.
And now you are ready to go with PHP / WordPress Development.
Your default localhost folder will be under
Now make a file named
/var/www/html/ and copy following code
http://localhost/phpinfo.php in your favorite web browser.
Bravo!!! You have now sucessfully install LAMP with phpmyadmin.
I hope this helps you installing lamp server in Ubuntu.
And don’t forget to check out our top 10 premium WordPress theme.