How to Install LAMP in Ubuntu in 3 steps

User Avatar
👤 admin
🔴 Admin
✍️ The most important thing in the world is to not be alone.
⏳ Last active: 15 Apr 2025 at 16:01
📅 Created: 19 Apr 2021 at 15:48
👀 Viewed: 20 times
✉️ Send Email

In this article we are going to install the famous Linux Apache PHP and MySQL web services. The article is going to use the tasksel Ubuntu app.

In this current article we are going to use:

  • Apache 2.4.41

  • PHP 7.4.3 with Zend Engine 3.4.0

  • MySQL 8.0.23

  • Ubuntu Server 20.04.2 LTS codename Focal , no problems to run in Ubuntu 21.04

Fist we have to install tasksel in the command line:


# Install tasksel

sudo apt-get install tasksel

The second thing is to run the app by typing tasksel in the command line:


# Start tasksel

tasksel

Image

The third step is to select the text box LAMP Server and with the TAB button on the keyboard select <Ok>

After a the installation has finished you have a brand new LAMP installation on your server. To enter in Apache default page open a web browser and type the IP of the server.

For entering into the MySQL console type:


# Enter MySQL console, the password is your ubuntu server login password

mysql -u root -p 

Image

The default web folder for Apache is /var/www/html

Image

Quick Video on how to install and review

https://youtu.be/TtMjO3iaje4

We hope you enjoyed this article. if that is so please rate this page with the stars bellow and subscribe to our YouTube channel.

If you want to comment: Login or Register