How to install Joomla on Ubuntu 14.04

This document describes how to install and configure Joomla on Ubuntu 14.04. Joomla is an immensely popular and award-winning open source Content Management System (CMS) that enables users to build websites and create potent online applications in an unperturbed manner. Absolute user-friendliness and flexibility make Joomla amongst the most sought-after CMS softwares. It uses a PHP application, in addition to a backend database like MySQL. Joomla was created in 2005, and boasts of more than 10,000 add-ons for customized functionality-no wonder than that it remains the second most popular virtual content management site. This tutorial explains the process of installing Joomla on Ubuntu 14.04 in the form of a simple-to-follow guide.

1 Preliminary Note

This tutorial is based on Ubuntu 14.04 server, so you should set up a basic Ubuntu 14.04 server installation before you continue with this tutorial. The system should have a static IP address. I use as my IP address in this tutorial and as the hostname.  You must have a LAMP server installed in Ubuntu 14.04 as mentioned in the tutorial to continue further.

2 Database initialization

I will create  the database for the Joomla as follows:

mysql -u root -p

Here we are adding database=joomladb user=joomlauser and password=joomlapassword:


CREATE USER joomlauser@localhost;

SET PASSWORD FOR joomlauser@localhost= PASSWORD("joomlapassword");

Giving priveleges to the user, here two cases lies if the LAMP is made of Mairadb-server or Mysql-server. The command differ in both cases so I will mention the difference here:

For Mariadb-server use:

GRANT ALL  ON `joomladb`.* TO `joomlauser`@`localhost` IDENTIFIED BY 'joomlapassword';

And for Mysql-server use:

GRANT ALL PRIVILEGES ON joomladb.* TO joomlauser@localhost IDENTIFIED BY 'joomlapassword';

Further moving ahead:


Restart services

service apache2 restart
service mysql restart


3 Installation of Joomla

We will first make a directory temp in which I will the download the latest version of the Joomla as follows:

mkdir temp
cd temp

We need to install unzip as by default it is now installed:

apt-get install unzip

Now create a directory  /var/www/html/joomla and unzip the Joomla zip file in the newly created folder:

mkdir -p /var/www/html/joomla

unzip -q -d /var/www/html/joomla

Now give appropriate permissions in the directory

chown -R www-data.www-data /var/www/html/joomla
chmod -R 755 /var/www/html/joomla

Now proceed to the web installation of Joomla. Go to the URL

Click to enlarge


Now give the values as I gave in my case

Site Name = joomla_test_site Description = joomla_test_site Admin Email = Admin Username = admin Admin password = howtoforge Confirm Admin Password = howtoforge

The above values will differ in you case, you can give any values of your choice. After giving the values press Next:

How to create a jailed ssh user with Jailkit on Debian Wheezy

Click to enlarge


Further fill the values in next page as you mentioned wile creating the database of the joomla, as in my case I gave the values as follows:

Database Type =	MySQLi
hostname = localhost
username = joomlauser
password = joomlapassword
Database Name = joomladb
Table Prefix = jml_

For Table Prefix you can use any character as I gave jml_ in my case. If you wish to add the FTP Configuration then you can put the values, in my case I am skipping this step as it is also recommended. Press Next:

Click to enlarge


Click to enlarge

For then next tab I will select the Brochure English (GB) Sample Data and press Install:

Click to enlarge


It will install Joomla. Now you need to delete the installation folder by using Remove Installation Folder:

Click to enlarge


Now you can access the admin panel at give the credentials as you gave at the time of Joomla installation:

Click to enlarge


In my case values are:

username = admin
password = howtoforge

It will launch the default webpanel of Joomla.

Click to enlarge


Cheers you have done with the Joomla installation in Ubuntu 14.04 🙂


Leave a Reply