My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://techienote.com and update your bookmarks.

Tech Resources

Sunday, April 12, 2009

Installing Joomla on CentOS

Joomla! is a free open source content management system for publishing content on the World Wide Web and intranets as well as a Model–view–controller (MVC) Web Application Development framework. The system includes features such as page caching to improve performance, RSS feeds, printable versions of pages, news flashes, blogs, polls, website searching, and language internationalization. Joomla is licensed under the GPL, and is the result of a fork of Mambo.

It is written in the PHP programming language and uses the MySQL database. Here is the step by step guide of how to install joomla on CentOS.

Operating System:
CentOS5.2

Joomla:
Joomla v.1.5.10

Installing prerequisites:

Enabling RPM repositeries:

#rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Enabling Utter Ramblings repositeries:

#rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Creating repo file:

# touch /etc/yum.repos.d/utterramblings.repo
# echo '[utterramblings]' >> /etc/yum.repos.d/utterramblings.repo
# echo "name=Jason's Utter Ramblings Repo" >> /etc/yum.repos.d/utterramblings.repo
# echo 'baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/' >> /etc/yum.repos.d/utterramblings.repo
# echo 'enabled=1' >> /etc/yum.repos.d/utterramblings.repo
# echo 'gpgcheck=1' >> /etc/yum.repos.d/utterramblings.repo
# echo 'gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka' >> /etc/yum.repos.d/utterramblings.repo

Installing required packages:

#yum -y install mysql mysql-server mysql-devel httpd php php-mysql

Creating database for joomla:

#mysql -u root -p
mysql>create database joomla;
mysql>exit

#echo "extension=mysql.so" >> /etc/php.ini

Installation of joomla:

Download and unzip the joomla package in your web root directory. In my case it is /var/www/html

Creating a temporary configuration file
# touch /var/www/html/joomla/configuration.php
# chmod 777 /var/www/html/joomla/configuration.php

Restart your web server:
#service httpd restart

Enter the following url in your browser:
http://your_ip/joomla and follow the webinstallation process. It is quit simple.

Labels: , ,