In this tutorial we will cover the steps needed to install Joomla on your CentOS 6.4, Debian or Ubuntu platform.

  • CentOS 6.4, Debian or Ubuntu installed on your computer/server
  • SSH access (Command line access to the server)
  • root privileges
  • Basic skills for working on a Linux environment
  • LAMP/LEMP installed on the server – How to set up LAMP/LEMP

Joomla is one of the most popular free open-source content management systems (CMS) available at the moment. You can create flexible dynamic websites which can be extended additionally with large amount of third party extensions (over 7,700 free and commercial) available online. Joomla supports page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, support for language internationalization etc.

Configure a Joomla database

The Joomla CMS requires a MySQL database where the website information will be stored. During the installation the database name, database username and password should be specified so we will go ahead and create new empty database through SSH:

You will be prompted to fill in the MySQL root password. After that the command prompt will be switched to a MySQL one.

New MySQL database can be created with the following command:

After that create new MySQL username and assign it to the database:

You can set desired password in the first MySQL query.

When ready flush the MySQL privileges in order for the changes to take effect:

When ready you can exit the MySQL prompt:

Install Joomla and test its functionality

You can download the latest Joomla installation package through the official website (http://www.joomla.org/download.html). Download and extract the content of the package inside a newly created folder in the default web root folder (usually this is /var/www/). In this tutorial we will use the latest stable version from the Joomla 3 branch:

This way the content from the Joomla installation package will be extracted inside a folder called joomla/.

Make sure that the correct ownership is set for the website content:

where www-data is the default user configured for the web server.

We can continue the installation by accessing the Joomla installation wizard through the browser:

where X.X.X.X is your server's IP address, i.e. http://1.2.3.4/joomla

An easy way to find your server's IP address is to execute the following command:

The Joomla installation includes few easy steps such as language selection, pre-installation checks, database setup etc.

At step 4 Database you can specify the MySQL database credentials created earlier in order for the web application to be configured with the empty database.

At step 6 Configuration you will be asked to specify a title for the website and to set Joomla administrative username and password. You can also load sample content using the Install Sample Data button. A few menu items, categories and articles will be created for the website which might help you organize your content better.

Once the installation is completed make sure that the folder called installation/ is removed. This can be done through a button called Remove installation folder available at step 7 Finish or you can do that manually through SSH:

Your website will be available through:

and the administrative area can be accessed through: