Joomla! is a free and open-source content management system (CMS) for publishing web content, developed by Open Source Matters, Inc. It is built on a model–view–controller web application framework that can be used independently of the CMS. It runs on a LAMP stack.

Apache 2.4
MariaDB 10.2
PHP 7.0

Install Apache

You can easily install Apache from the official repository with the command below:

apt-get install apache2

After installation execute the following commands to start your Apache service and make it run at startup;

systemctl start apache2
systemctl enable apache2

Install MariaDB 10.2 (Latest)

At the time of the writing, 10.2 is the latest stable version of MariaDB.
First of all, you need to install the Software properties package:

apt-get install software-properties-common

Import the signing key with the following command:

apt-key adv --recv-keys --keyserver hkp:// 0xF1656F24C74CD1D8

Now you can add the MariaDB repository with the command below:

add-apt-repository 'deb [arch=amd64,i386,ppc64el] xenial main'

Install MariaDB-Server package:

apt-get install mariadb-server

And after the installation, don’t forget to start and enable the service:

systemctl start mariadb
systemctl enable mariadb

Install PHP 7.0

PHP 7.0 is provided by the Ubuntu official repository, So you can download PHP and the needed extensions easily using “apt”:

 apt-get install php php-common php-mbstring php-mcrypt php-mysql php-xml libapache2-mod-php

Creating Database

First of all, we need to do some initial configuration for MariaDB.
Run the Mysql installer script with the following command:


Set a password for the “root” user and answer all other question with “y”
Login to root user with the following command:

mysql -u root -p

Now we can create our database with the command below (Make sure to replace the red parts with your preferred values):

create database HS;
grant all privileges on *.* to 'username'@'localhost' identified by 'password';
flush privileges;

Download and install Joomla

We are going to download Joomla using WGET:


Now you have downloaded the Joomla source as a “zip” file, you have to unzip it first:

apt-get install unzip

Now you can extract the zip file with the following command:

unzip joomla_3-8-1-stable-full_package-zip?format=zip

We have to set the Apache user as the owner of the whole Document root:

cd ..
chown -R www-data:www-data www/
Was this answer helpful? 0 Users Found This Useful (0 Votes)