How to Install LAMP in Ubuntu in 3 steps
Spread the love

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:

  1. Apache 2.4.41
  2. PHP 7.4.3 with Zend Engine 3.4.0
  3. MySQL 8.0.23
  4. 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
Code language: PHP (php)

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

# Start tasksel tasksel
Code language: PHP (php)
LAMP server, install and run tasksel in ubuntu

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
Code language: PHP (php)
LAMP , Enter MySQL console

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

LAMP, default web folder for Apache is /var/www/html

Quick Video on how to install and review

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

5/5 - (2 votes)

Facebook Comments Box