Jump to content

Joomla installation

From TetraWiki


Follow these steps to install joomla with php, apache, mysql

Installing RPMForge & EPEL Repository in CentOS 6

  1. RHEL/CentOS 6 64 Bit OS ##
  2. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  3. rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  4. wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  5. rpm -ivh epel-release-6-8.noarch.rpm

Note : The RPMForge repository will be installed under /etc/yum.repod directory as a file rpmforge.repo.

Importing RPMForge Repository Key in Cent-Os

Next, you’ll need to download and install DAG’s GPG key for your system.

  1. wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
  2. rpm --import RPM-GPG-KEY.dag.txt

Once the installation has finished and you are back into your system (remember to remove the mounted iso) I decided to install not only mandatory packages but also optional so I added this line to /etc/yum.conf:

group_package_types=default,mandatory,optional

wq
      1. INSTALL REQUIRED SOFTWARES###
  1. yum groupinstall "Web Server"
  2. yum groupinstall "MySQL Database server"
  3. yum install man wget php php-mysql unzip policycoreutils-python -y

Create a temporary directory to extract and download Joomla:

  1. mkdir /joomla; cd /joomla

Download Joomla:-

  1. wget http://joomlacode.org/gf/download/frsrelease/16512/72038/Joomla_3.1-Stable-Full_Package.zip

Extract downloaded package:

  1. unzip Joomla_2.5.1-Stable-Full_Package.zip

Move all files to home web directory:

  1. mv /joomla/* /var/www/html

Start MySQL and set it to start at boot time:

  1. service mysqld start; chkconfig mysqld on

Set root's password to MySQL and get MySQL production-ready (Essentially type Y to everything):

  1. /usr/bin/mysql_secure_installation

Note:- while run this cammand, set root password, and disabled anonymous login

Create Joomla User:

  1. mysql -u root -p
  2. CREATE USER 'Admin'@'localhost' IDENTIFIED BY 'asd1234f';

Create Joomla Database:

  1. mysqladmin -u root -p create Joomla

Provide appropriate privileges to the JoomlaUser user:


  1. mysql -u root -p

mysql> GRANT ALL PRIVILEGES ON Joomla.* TO Admin@localhost IDENTIFIED BY 'asd1234f';

       where:
       'Joomla' is the name of your database
       'JoomlaUser@localhost' is the userid of your webserver MySQL account
       'mypass' is the password required to log in as the MySQL user

mysql> flush privileges; \q

Turn output buffering off by editing /etc/php.ini change:

    output_buffering=4096
    {change    to}
    output_buffering=Off

Create empty configuration.php file and set permissions:

  1. cp /var/www/html/joomla254/installation/configuration.php-dist /var/www/html/joomla254/configuration.php
  2. chmod 777 /var/www/html/joomla254/configuration.php
  3. touch /var/www/html/configuration.php
  4. chmod 666 /var/www/html/configuration.php

Start Apache and set it to start on boot:

  1. service httpd start; chkconfig httpd on

Disable SELinux (I recommend having a look at this post for a fix that will allow you to run SELinux and Joomla. Do ensure that you test everything that you are likely and unlikely to do, e.g. add articles, add blogs, etc..). Alternatively edit /etc/selinux/config and change:

    SELINUX=enforcing
   {change to}
   SELINUX=disabled 

Start the Joomla install proper by navigating to:

  1. http://<192.168.1.45/joomla>

{ Set all mandatory options & after deleted installation directory from this path}

  1. rm -rf /var/www/html/joomla/installation

To access your Joomla 3.1 administrator’s page : http://192.168.1.45/joomla/administrator/

To browse your Joomla 3.1 CMS : http://192.168.1.45/joomla/