Installing Joomla on CentOS


UPDATE:

You can follow the same method for installing Joomla 1.6.0 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.

Subscribe / Share

Article by Vidyadhar

My name is Vidyadhar Sarmalkar & I work as a consultant and have done RHCE & CCNA.
Vidyadhar tagged this post with: , , , , , , , Read 272 articles by

11 Comments

  1. Tanongsak says:

    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

  2. chuina says:

    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.

  3. chuina says:

    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.

  4. vidyadhards says:

    Have u restarted your mysql? have u restarted apache?

  5. chuina says:

    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. ^_^

  6. Anonymous says:

    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

  7. vidyadhards says:

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

  8. Anonymous says:

    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

  9. vidyadhards says:

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

  10. Anonymous says:

    yes i have restarted the server but still the same problem

  11. techno tiger says:

    i am running joomla in cent os… while installing a new component i am having the error msg WARNING FAILED TO MOVE… can any 1 help me…

Leave a Reply

rss twitter facbook

Categories

Archives