How to Install and Setup Joomla 2.5.3 on CentOS 6/RHEL 6

On 15 March 2012, Joomla Project has announce the new released of Joomla 2.5.3 version. This is a security release. Joomla 2.5.3 has fixed 2 security issues as below :
High Priority – Core – Privilege Escalation – 20120303
High Priority – Core – Password Change – 20120304
In this post, i will show the steps to install Joomla 2.5.3 on Red Hat Linux Enterprise 6 (RHEL 6) server. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x and RHEL 5.x.

1. Download using wget command the Joomla 2.5.3 Stable Package from official Joomla download sites :

[root@rhel6 ~]# wget
--2012-03-24 03:59:13--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: [following]
--2012-03-24 03:59:14--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7984960 (7.6M) [application/zip]
Saving to: âJoomla_2.5.3-Stable-Full_Package.zipâ

100%[==========================================================>] 7,984,960   55.7K/s   in 2m 41s

2012-03-24 04:01:55 (48.5 KB/s) - âJoomla_2.5.3-Stable-Full_Package.zipâ

2. Unzip the package into web server’s document root :

[root@rhel6 ~]# unzip -d /var/www/html/joomla253

3. Create database for joomla 2.5.3 :

[root@rhel6 ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.47 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database joomla253db;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'joomla253user'@'localhost' IDENTIFIED BY 'joomla253password';
Query OK, 0 rows affected (0.01 sec)

mysql> GRANT ALL PRIVILEGES ON joomla253db.* to joomla253user@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> SHOW GRANTS FOR 'joomla253user'@'localhost';
| Grants for joomla253user@localhost                                                                                   |
| GRANT USAGE ON *.* TO 'joomla253user'@'localhost' IDENTIFIED BY PASSWORD '*F421F24167FCE0B4DAE4130DFB268C7897CF0C3D' |
| GRANT ALL PRIVILEGES ON `joomla253db`.* TO 'joomla253user'@'localhost'                                               |
2 rows in set (0.01 sec)

mysql> exit

4. Copy and Allow write-able to configuration.php as below command :

[root@rhel6 ~]# cp /var/www/html/joomla253/installation/configuration.php-dist /var/www/html/joomla253/configuration.php
[root@rhel6 ~]# chmod 777 /var/www/html/joomla253/configuration.php

5. Turn off output buffering on php as below guidelines :
How to Turn Off or Disable Output Buffering for php.ini on PHP 5.3.2

READ  How to remove "Red Hat Enterprise Linux Test Page"

6. Open you default web browser. This steps has been tested using Mozilla Firefox. Navigate to this URL :

7. Select your prefered language :

8. Make sure your follow the requirements and recommendations. Please make sure your actual server setting equal to recommended setting :

9. Read and accept the joomla license :

10. Enter your database name as what you have created on step (3) above :

11. Ignore FTP configuration if you not sure or if your server’s not configured :

12. Complete main configuration and install sample data if you need it :

READ  How to Configure 389 Directory Server on CentOS/RHEL

13. Setup and configuration wizard complete :

14. For extra security, disable write-able to configuration.php and remove installation folder as below command :

[root@rhel6 ~]# chmod 664 /var/www/html/joomla253/configuration.php
[root@rhel6 ~]# ls /var/www/html/joomla253/ | grep installation
[root@rhel6 ~]# rm -rf /var/www/html/joomla253/installation

15. You can enjoy using Joomla 2.5.3 now :

To access your Joomla 2.5.3 administrator’s page :

To browse your Joomla 2.5.3 CMS :