In this tutorial we’ll learn how to install Joomla on Ubuntu 16.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 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Joomla on Ubuntu 16.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 16.04.
You should check out this LAMP stack install tutorial for Ubuntu 16.04, if you haven’t installed LAMP yet. Once it’s installed, come back here and read on. We also will install the required packages for LAMP stack and the important PHP extension that Joomla relies on:
apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-gd php7.0-mbstring php7.0-zip php7.0-dom php7.0-xml
Step 3. Installing Joomla.
To download the Joomla package, go to its official website, copy the link of Joomla 3.7.5 stable zip package from it and paste it using ‘wget’ command on your terminal:
wget https://downloads.joomla.org/cms/joomla3/3-7-5/Joomla_3-7.5-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 16.04 server. Thanks for using this tutorial for installing Joomla on Ubuntu 16.04 LTS (Xenial Xerus) system.