In this tutorial we are going to learn how to install Joomla on Ubuntu 18.04. We will also install and configure its prerequisites. Joomla is a powerful content management system for building websites and programs. Written in PHP, Joomla forces a variety of websites, including portals, intranets, online books, e-commerce shops, and government apps. Joomla also has a rich ecosystem of plugins, themes, and specialist consultants to ease the process of building everything you might want on its wealthy platform.
I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 18.04 Bionic Beaver minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Joomla on Ubuntu 18.04
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
apt-get update -y apt-get upgrade -y
Step 2. Installing LAMP on Ubuntu 18.04 LTS.
You should check out this LAMP stack install tutorial for Ubuntu 18.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on.
Step 3. Installing Joomla on Ubuntu 18.04 Bionic Beaver.
To download the Joomla package, go to its official website, copy the link of Joomla 3.8.12 stable zip package from it and paste it using ‘wget’ command on your terminal:
wget https://github.com/joomla/joomla-cms/releases/download/3.8.12/Joomla_3.8.12-Stable-Full_Package.zip unzip -q Joomla*.zip -d /var/www/html
Once it is done, set the owner permission for Apache root directory:
chown -R www-data.www-data /var/www/html chmod -R 755 /var/www/html
Step 4. Configure Database for Joomla.
Next, we need to create a database for the Joomla installation:
mysql -uroot -p
Run the following command to create a database for Joomla:
create database joomla; create user joomlauser@localhost IDENTIFIED BY 'joomlapassword'; GRANT all ON joomla.* TO joomlauser@localhost; flush privileges; exit
Step 5. Accessing Joomla Web Installation.
Now you can access the Joomla web install wizard in your browser by entering the domain name or http://your_ip/ to continue your Joomla installation.
Congratulation’s! You have successfully install and configured Joomla on your Ubuntu 18.04 server. Thanks for using this tutorial for installing Joomla content management system on Ubuntu 18.04 LTS (Bionic Beaver) system.