Install LAMP Server on Ubuntu 18.04 Bionic Beaver

Hello everyone, welcome to my Ubuntu Tutorial. Today, we are going to learn how to install LAMP Server on Ubuntu 18.04 Bionic Beaver. LAMP Server is a popular way to build your own web server. After you have LAMP Server on your server, we can then install many web applications such as Owncloud, Nextcloud, WordPress and many more. At the time I wrote this article, Ubuntu 18.04 Bionic Beaver is still in the development version. But I think this tutorial still valid even after the final release is out. So, let’s get started. 

Steps to install LAMP Server on Ubuntu 18.04 

Step 1. Install Apache web server

First, we are going to install Apache web server on Ubuntu 18.04. Use the following command to install Apache on Ubuntu.

sudo apt install apache2


Now open a web browser and type the server IP address. For example:

You should see something like this

install lamp server on Ubuntu 18.04

Step 2. Install MariaDB Server

Now we are going to install MariaDB Server on Ubuntu 18.04. Please also read my other tutorial to install MariaDB on Debian 9 Server. But anyway, you can use this simple command to install it.

sudo apt install mariadb-server mariadb-client


Secure MariaDB

sudo mysql_secure_installation

Please follow on screen installation wizard. You will be asked to change password for root user etc. 

Start MariaDB Service

sudo systemctl start mariadb

OK at this point, MariaDB is ready. 

Step 3. Install PHP

Next, we are going to install PHP on Ubuntu 18.04. 

sudo apt install php php-mysql


Ok done. Now we have installed Apache web server, MariaDB and also PHP. Now our Ubuntu 18.04 is ready for powering up some web applications. Thanks for reading this post, please share if you think this was useful and leave us comments if any query. Cheers.

Be the first to comment

Leave a Reply

Your email address will not be published.