How to Install Joomla on Ubuntu 16.04

r00t September 6, 2017

Install Joomla on Ubuntu 16.04

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:

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;

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.

Install Joomla on Ubuntu 16.04

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.




The Tags:

Leave a Comment

Comments are closed.