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.


Step 1:-

Install tasksel.

Use the following command to install it.
$ sudo apt-get install tasksel


Step 2:-

Install LAMP using Tasksel

After installing tasksel, let’s install LAMP setup on your Ubuntu.
$ sudo tasksel


Step 3:-

Now check on Lamp Server.

lamp

Hover on Lamp server and press Space key.


Step 4:-

Press Enter


Step 5:-

During installation, It will prompt for MySQL root account password. Enter your password and other details(if asked).

server


Hope your setup is completed.

check by visiting http://localhost on addressbar of your browser

installing


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 /var/www/html/

Now make a file named phpinfo.php under /var/www/html/ and copy following code
<?php
phpinfo();
?>

Now visit http://localhost/phpinfo.php in your favorite web browser.

ubuntu

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: