How to Install Joomla on Ubuntu 18.04

This tutorial will show you how to install Joomla on a Ubuntu 18.04 computer. As of writing this article, the latest version of Joomla is 3.9.11.

1. Update your Ubuntu system.

$ sudo apt update

2. Install the LAMP stack.

Refer to the tutorial How to Install Linux, Apache, MySQL, PHP (LAMP) Stack on Ubuntu 18.04.

3. Go to the Joomla website download page and copy the URL for Joomla’s latest version.

As of writing this article, the full URL for the latest version of Joomla is

4. Create a new directory called joomla and change the directory.

$ sudo mkdir /var/www/html/joomla
$ cd /var/www/html/joomla

5. Download Joomla’s latest version.

$ sudo wget

6. Extract the downloaded installation file.

$ sudo unzip

7. Change the ownership for joomla directory so Apache can access it.

$ sudo chown www-data /var/www/html/joomla/

8. Create a database and a database user for Joomla – and grant user permissions to access the database.

$ sudo mysql -u root -p
mysql> CREATE DATABASE joomla_db;
mysql> CREATE USER 'joomla_user'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL ON joomla_db.* TO 'joomla_user'@'localhost' IDENTIFIED BY 'password';

Remember the database name, database username and password as you will be needing them later.

9. Exit the database.

mysql> Exit;

10. Go to your browser to start the configuration.

Type this in the browser: localhost/joomla.

11. In Main Configuration, you will be asked for the following information:

  • Site Name
  • Description
  • Email
  • Username
  • Password
  • Confirm Password
  • Site Offline — Leave the default No

Joomla 3 Main Configuration

12. Click on the Next button.

13. In Database Configuration, you will be asked for the following information:

  • Database Type — Leave the default MySQLi
  • Host Name — Leave the default localhost
  • Username — joomla_user from Step 8
  • Password — password from Step 8
  • Database Name — joomla_db from Step 8
  • Table Prefix
  • Old Database Process — Leave the default as is

Joomla 3 Installation Database Configuration

14. Click on the Next button.

15. In Finalization, leave the defaults as they are.

16. Click on the Install button at the top-right corner.

17. Delete the installation directory.

$ sudo rm -rf /var/www/html/joomla/installation

18. Click on the Administrator button to log in to the dashboard.

You can log in later at this page: localhost/joomla/administrator/.

Joomla 3 Installation Congratulations