Did You Know?
Donate to TecMint

LFCS - Linux Foundation Certified SysAdmin - Exam Preparation Guide

Install Joomla 3.1.1 Using LAMP (Linux, Apache, MySQL, PHP) on RHEL, CentOS & Fedora

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

This post guide you step by step installation of Joomla CMS (Content Management System) tool on Linux Operating System. There are number of installation ways available on internet. However, We have kept in mind for those beginners who are new in Joomla and Linux platform. Installation steps works on RHEL/CentOS/Fedora Linux Operating System. We have chosen LAMP (Linux, Apache, MySQL, PHP) installation method.

Installation of Joomla CMS

Installation of Joomla CMS

What is Joomla?

Joomla is a popular Open Source Content Management System (CMS) tool which allows us to easily build dynamic website and manage online applications. It also manage & publish your website contents like video, pictures, articles on the website. Joomla is freely available, which supports huge third party plug-ins and themes. With the help of Content Management System (CMS), you can set up websites in the World Wide Web (WWW) without having knowledge of programming.

Joomla Requirements

  1. Apache
  2. PHP
  3. MySQL

What is LAMP (Linux, Apache, MySQL, PHP)?

LAMP is an open source web development software stack wherein Linux as the Operating System, Apache is the Web Server, MySQL is a RDBMS and PHP as the object-oriented scripting language. Please follow below link to install LAMP.

  1. LAMP (Linux, Apache, MySQL, PHP) setup on RHEL, CentOS & Fedora

In this post, I used hostname as “test.tecmint.com” with the IP address These settings may differ at your environment, so please change them where appropriate. Also all the steps have been executed with root privileges. So make sure you have root login credential.

Step 1: Downloading Joomla 3.1.1

This installation method guide you how to install latest Joomla 3.1.1 using LAMP setup on RHEL, CentOS and Fedora. Use “wget” command to download latest source tarball.

[root@tecmint html]# wget http://joomlacode.org/gf/download/frsrelease/18323/80367/Joomla_3.1.1-Stable-Full_Package.tar.gz

Copy downloaded source files package and extract it under Apache DocumentRoot directory (i.e /var/www/html/).

[root@tecmint html]# cp /downloads/Joomla_3.1.1-Stable-Full_Package.tar.gz .
[root@tecmint html]# tar zxvf Joomla_3.1.1-Stable-Full_Package.tar.gz

Step 2: Change the Ownership of Directory

Remove source file and change ownership of directory with user and group “apache” recursively with below command.

[root@tecmint html]# rm -rf Joomla_3.1.1-Stable-Full_Package.tar.gz
[root@tecmint html]# chown -R apache:apache /var/www/html

[root@tecmint html]# ls -l
total 116
drwxr-xr-x. 10 apache apache  4096 Apr 27 04:09 administrator
drwxr-xr-x.  2 apache apache  4096 Apr 27 04:09 bin
drwxr-xr-x.  2 apache apache  4096 Apr 27 04:09 cache
drwxr-xr-x.  2 apache apache  4096 Apr 27 04:09 cli
drwxr-xr-x. 14 apache apache  4096 Apr 27 04:09 components
-rw-r--r--.  1 apache apache  3118 Apr 27 04:09 htaccess.txt
drwxr-xr-x.  5 apache apache  4096 Apr 27 04:09 images
drwxr-xr-x.  2 apache apache  4096 Apr 27 04:09 includes
-rw-r--r--.  1 apache apache  1544 Apr 27 04:09 index.php
drwxr-xr-x. 11 apache apache  4096 Apr 27 04:09 installation
-rw-r--r--.  1 apache apache  1886 Apr 27 04:10 joomla.xml
drwxr-xr-x.  4 apache apache  4096 Apr 27 04:09 language
drwxr-xr-x.  4 apache apache  4096 Apr 27 04:09 layouts
drwxr-xr-x.  9 apache apache  4096 Apr 27 04:09 libraries
-rw-r--r--.  1 apache apache 17816 Apr 27 04:09 LICENSE.txt
drwxr-xr-x.  2 apache apache  4096 Apr 27 04:09 logs
drwxr-xr-x. 16 apache apache  4096 Apr 27 04:09 media
drwxr-xr-x. 28 apache apache  4096 Apr 27 04:09 modules
drwxr-xr-x. 13 apache apache  4096 Apr 27 04:09 plugins
-rw-r--r--.  1 apache apache  4340 Apr 27 04:09 README.txt
-rw-r--r--.  1 apache apache   865 Apr 27 04:09 robots.txt.dist
drwxr-xr-x.  5 apache apache  4096 Apr 27 04:09 templates
drwxr-xr-x.  2 apache apache  4096 Apr 27 04:09 tmp
-rw-r--r--.  1 apache apache  1715 Apr 27 04:09 web.config.txt

Step 3: Apache Server Configuration

Open Apache configuration file with VI or your choice editor.

[root@tecmint ~]# vi /etc/httpd/conf/httpd.conf

Search directive as below and change it appropriate.

ServerAdmin admin@tecmint.com

ServerName test.tecmint.com:80

Note: User and Group should be apache

Step 4: Restart httpd (Apache) Service

Restart Apache web service.

[root@tecmint ~]# service httpd restart

To make httpd service started automatically in next boot, use below command.

[root@tecmint ~]# chkconfig --level 35 httpd on

Verify your httpd is running and listening request on port 80.

[root@tecmint ~]# netstat -antp | grep httpd

tcp     0      0 :::80            :::*          LISTEN 1705/httpd

Step 5: Iptables (Firewall) Configuration:

Please open port 80 on firewall or disable iptables.

[root@tecmint html]# iptables -A INPUT -p tcp --dport 80 -j ACCEPT
[root@tecmint html]# service iptables save
[root@tecmint html]# service iptables restart

Step 6: MySQL Settings

Set MySQL root password for login.

[root@tuxbox ~]# mysqladmin -u root password 'redhat'

Login with root credential in MySQL.

[root@tecmint ~]# mysql -u root -p

Create database called “joomla” in MySQL.

mysql> create database joomla;

Grant privilege on joomla database for “joomla” user in MySQL.

mysql> grant all on joomla.* to joomla@'localhost' identified by 'redhat';
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

Restart MySQL Service.

[root@tecmint ~]# service mysqld status
[root@tecmint ~]# service mysqld restart
[root@tecmint ~]#chkconfig --level 35 mysqld on

Step 7: Installation and Configuration of Joomla

Open your browser and type which will open below screen to configure Joomla step by step.

Joomla Installation

Joomla Installation

Step 8: Database Configuration

Fill up the details like database name, username and password which was set earlier in Step 6 for MySQL settings and click ‘Next‘.

Joomla Database Configuration

Joomla Database Configuration

Step 9: FTP Configuration

Leave blank as we are not using FTP and click ‘Next‘.

Joomla FTP Configuration

Joomla FTP Configuration

Step 10: Install Sample Data

Install Sample Data and click ‘Install‘.

Joomla Sample Data

Joomla Sample Data

Step 11: Installing Sample Data

Installing Joomla Data

Installing Joomla Data

Step 12: Congratulation! Joomla ! Installation Completed.

Joomla Installation Completed

Joomla Installation Completed

Caution: Remove installation directory clicking button ‘Remove Installation

Step 13: Login in Joomla

Joomla Login

Joomla Login

Step 14: test.tecmint.com website

Test Joomla Website

Test Joomla Website

Step 15: Site administrator Login

Joomla Site Administration

Joomla Site Administration

Step 16: Control Panel of website test.tecmint.com

Joomla Control Panel

Joomla Control Panel

If you have any query in this regard, please write on comment box below.

We’ll work for you…!!!

We also provide hosting solution in WordPress & Joomla as well as migration from Joomla to WordPress or vice versa with minimum charges. If you want us to do it for you please contact us.

He has over 10 years of rich IT experience which includes various Linux Distros, FOSS and Networking. Narad always believes sharing IT knowledge with others and adopts new technology with ease.

Your name can also be listed here. Work as a Paid freelancer/writer at TecMint.
Download Free eBooks
Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

9 Responses

  1. Blaze says:

    I’m having a issue when I get to the first Web Installer page. I fill in the Main Configuration details and hit next. The blue progress bar start’s scrolling but I can never get to the Database Configuration tab. I have tried on CentOS 6.4 32 and 64bit OS’s with the same result. I don’t any errors during any part of the install of LAMP or in the setup/configurations above. The only difference I can see is that it’s installing PHP 5.5.1 and I have read on some other forums that other people have seen similar issues with their PHP version, but it was mainly on older versions of Joomla. Any idea’s?

    • Hope you have created a database with grant permission for a user. Share your Joomla version you are using.
      Also confirm Apache is installed with with following packages mod_mysql, mod_xml, and mod_zlib.

  2. Mumukshu says:

    I am also having the same problem. Not moving to database page. I am new to Linux and Joomala. Please help

  3. nabeil says:


    after coming in the step 7 i can not go on the database page , can u resolve this prob


  4. Rached Noureddine says:

    This steps are valid almost for every CMS

  5. Lou Wright says:

    Worked great….Thanks

  6. Milthon says:

    all perfect!!, thank you

  7. ManhPQ says:

    thanks for share

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.