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: , ,

12 Comments:

Blogger Unknown said...

i do it already and completely.So I would like to appreciate for your information above.
I Use Centos for running Joomla. if anybody want me to show how to pls. write to me tjking2514@hotmail.com

October 4, 2009 at 2:14 AM  
Anonymous Anonymous said...

Your effort is helpful.
I'm trying to install it in "CentOS5.4"

I've two questions:

1.I can't login as 'root' in mysql.See below:
mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

2.Why the others need write option in configuration.php ?
chmod 777 /var/www/html/joomla/configuration.php

Thanks.

May 11, 2010 at 6:52 AM  
Anonymous Anonymous said...

This comment has been removed by the author.

May 11, 2010 at 7:40 AM  
Anonymous Anonymous said...

Problem "1" solved. I've login as 'root' and create the 'joomla' database.
But now in the configuration window is shows:
- MySQL Support No
All others are YES.

May 11, 2010 at 7:46 AM  
Blogger Vidyadhar said...

Have u restarted your mysql? have u restarted apache?

May 12, 2010 at 9:05 AM  
Anonymous Anonymous said...

Hi,
Thanks for your reply.
I was missing *php-mysql*
After installing it with "yum install php-mysql" followed by restarting "mysqld" and "httpd" and a SELinux rule "setsebool -P httpd_can_network_connect=1"

It's working.
Your blog is really resourceful. ^_^

May 12, 2010 at 1:17 PM  
Anonymous Anonymous said...

Hello
i have completed de steps you have indicated above but i can not touch configuration.php in joomla when i tipe de command it says:touch: cannot touch `/var/www/html/Joomla_1.5.18-Stable-Full_Package/configuration.php-dist': No such file or directory
can you tell me why please

June 2, 2010 at 11:47 AM  
Blogger Vidyadhar said...

Run the below command
#touch /var/www/html/Joomla_1.5.18-Stable-Full_Package/configuration.php

June 2, 2010 at 12:46 PM  
Anonymous Anonymous said...

Thanks for your replay
I have solved the problem but now another one appears.
when i type localhost/joomla in my browser it says: waiting for localhost
after that nothing appears in my browser page a big white page i have there
i can´t understand what is wrong
can you tell me please? thanks

June 2, 2010 at 1:23 PM  
Blogger Vidyadhar said...

It seems some dependencies issue. Have restarted your web server?

June 2, 2010 at 3:08 PM  
Anonymous Anonymous said...

yes i have restarted the server but still the same problem

June 2, 2010 at 3:49 PM  
Anonymous Anonymous said...

What changes have you made to the MySQL software? Your client package does not include the MySQL Workbench, and I have been unable to install it from the MySQL website. What other surprises are in here?

July 23, 2010 at 3:49 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home