Build and Deploy your own CMS Powered by Joomla 3.x CMS on CentOS-6 Server - PDF by krabah

VIEWS: 506 PAGES: 22

In this Hands-on lab session, you will learn how to install CentOS-6 with two NICs. You’ll also learn how to perform post-installation configuration e.g., upgrade the system with new patches and bug fixes, configure static IP address from dynamic one, change the computer hostname, modify hosts file, perform ping test among others. I’ll also show you how to install and administer LAMP stack, install EPEL to enhance CentOS-6 capability. Finally, I'll show you how to install and configure Joomla CMS. Upon completion of this Hands-on training you should have gained enough skill to deploy, maintain and administer CentOS-6 server with ability to extend it to deploy mainstream applications like webhosting etc.

More Info
									Global Open Versity ICT Labs              Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.1



                            Global Open Versity
            IT System Integration Hands-on Labs Training Manual

     Build and Deploy your own CMS Powered by Joomla 3.x CMS on
                            CentOS-6 Server
                                         Kefa Rabah
                            Global Open Versity, Vancouver Canada
                krabah@globalopenversity.org, www.globalopenversity.org

Table of Contents                                                                                   Page No.

STEP-BY-STEP INSTALL GUIDE JOOMLA CMS ON CENTOS-6 SERVER                                                      2

1.0 Introduction                                                                                              2

Part 1: Install & Configure CentOS6/RedHat6 Server                                                            3
  Step 1: Getting Started & Hardware Pre-requisites serves well for both RedHat/CentOS Distros                3
    System Requirements                                                                                       3

Part 2: Installing RHEL EPEL Repo on Centos 6.x                                                               4
  How to install RHEL EPEL repository on Centos 6.x                                                           4
    Step 1: Install the extra repositories                                                                    4
    Step 2: Enable the remi repository                                                                        4

Part 3: Install Joomla v3 CMS                                                                                 5
  Step 1: Install Jooma v3                                                                                    5
  Step 2: Summary of your Site                                                                               13
    2.1. Types of Content                                                                                    13
    2.2. Types of Layout                                                                                     13

Part 4: Joomla Setup and Extensions                                                                          14
  1: Template configuration                                                                                  14
     2: Content Structure                                                                                    14
  Step 1: Joomla Extensions                                                                                  15
     1. Base Menu                                                                                            15

Part 5: Joomla Template Development                                                                          15
  Step 1: Install and Setup JONGman Scheduler                                                                16

Part 6: Troubleshooting Joomla Installation                                                                  19

Part 7: Need More Training on Linux:                                                                         20
  Ubuntu Server Administration Training                                                                      20

Part 8: Hands-on Labs Assignments                                                                            21

Linux Administration Training                                                                                21


A GOV Open Access Technical Academic Publications
Enhancing education & empowering people worldwide through eLearning in the 21st Century

                                                                                                              1
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs           Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.1



                            Global Open Versity
           IT Systems Integration Hands-on Labs Training Manual

        Step-By-Step Install Guide Joomla CMS on CentOS-6 Server
By Kefa Rabah, krabah@globalopenversity.org               October, 2012                     GTS Institute


1.0 Introduction
CentOS is a community-supported, free and open source operating system based on Red Hat Enterprise
Linux. It exists to provide a free enterprise class computing platform and strives to maintain 100% binary
compatibility with its upstream distribution .CentOS stands for "Community ENTerprise Operating
System". CentOS is the perfect server for people who need an enterprise class operating system stability
without the cost of certification and support and pocket burning baggage that comes with proprietary
software. And the beauty is CentOS is free.

CentOS-6.0 is based on the upstream release of Red Hat EL 6.0 and includes packages from all variants.
All upstream repositories have been combined into one, to make it easier for end users to work with. It
exists to provide a free enterprise class computing platform and strives to maintain 100% binary
compatibility with its upstream distribution, in this case Red Hat EL 6. To-date, CentOS simply remains the
unrivaled champion of rock solid, and with excellent and modern capabilities, good performance and ultra-
long support.

EPEL: Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates,
maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not
limited to, Red Hat Enterprise Linux (RHEL),CentOS and Scientific Linux (SL).

EPEL packages are usually based on their Fedora counterparts and will never conflict with or replace
packages in the base Enterprise Linux distributions. EPEL uses much of the same infrastructure as
Fedora, including buildsystem, bugzilla instance, updates manager, mirror manager and more.

Joomla! is an open source content management system platform for publishing content on the World Wide
Web and intranets as well as a Model–view–controller (MVC) Web application framework. It is written in
PHP, stores data in MySQL and includes features such as page caching, RSS feeds, printable versions of
pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla is a Menu-driven CMS which basically means that most web-pages have a dedicated menu item
(plus Search Engine friendly URL). One can have several menu's in Joomla and each menu can have
sub-menu levels. Just like in case with the task of structuring the content our customer often ask us to
help them a little to spin-up their menu systems. Once the basis is done it's much easier to further develop
it.

Currently, Joomla! is one of the most powerful Open Source Content Management Systems in use. It is
used all over the world for everything from simple websites to complex corporate applications. It is easy to
install, simple to manage, and very reliable.


                                                                                                            2
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                              ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs           Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.1



Joomla can be installed manually from source code on a system running a web server which supports
PHP applications. Manual installation usually requires more time and experience than other alternatives
such as installing Joomla from a package management system or using a TurnKey Joomla appliance
which pre-integrates Joomla and its dependencies as a ready-to-use system. There are numerous web
hosting companies who provide a control panel which automates the deployment of a basic Joomla web
site.

Joomla can also be installed via the Microsoft Web Platform Installer which installs Joomla on Windows
and IIS. The Web PI will automatically detect any missing dependencies such as PHP or MySQL then
install and configure them before installing Joomla.

Solution
In this Hands-on lab session, you will learn how to install CentOS-6 with two NICs. You’ll also learn how to
perform post-installation configuration e.g., upgrade the system with new patches and bug fixes, configure
static IP address from dynamic one, change the computer hostname, modify hosts file, perform ping test
among others. I’ll also show you how to install and administer LAMP stack, install EPEL to enhance
CentOS-6 capability. Finally, I'll show you how to install and configure Joomla CMS. Upon completion of
this Hands-on training you should have gained enough skill to deploy, maintain and administer CentOS-6
server with ability to extend it to deploy mainstream applications like webhosting etc.

Assumptions
It’s assumed that you have a good knowledge of Linux CentOS6 OS. If not then you can check this article
which discuses how to install CentOS-6 64-bit server:

    •   Step-By-Step Guide CentOS-6 Server Installation & Administration v1.1


Part 1: Install & Configure CentOS6/RedHat6 Server

Step 1: Getting Started & Hardware Pre-requisites serves well for both RedHat/CentOS Distros

System Requirements
    •   Architecture
        These instructions are for installing Red Hat Enterprise Linux 6 (RHEL6) on an IA-32 system (i.e.,
        a 32-bit Intel- or AMD-based system) and Opteron 64-bit systems (x86_64).

    •   Minimum Memory
        Red Hat recommends for 32 bit a minimum of 1GB memory/logical CPU, and for 64 bit a minimum
        of 1GB of memory, 1GB/logical CPU. At SLAC, RHEL6 has been successfully installed on
        systems with 512 MB, but such systems have a tendency to bog down badly due to excessive
        swapping when too many applications are open at once.

    •   Minimum Disk Space
        OCIO recommends a minimum disk size of above 12 GB, and a minimum root partition ("/") size
        of about 9 GB.

    •   CDROM Drive
        Red Hat does not include a floppy version of the boot images for RHEL6. Your system will need a
        boot-capable CDROM drive, or a BIOS which knows how to PXE boot (ask unix-admin about that
        if you have questions).
                                                                                                       3
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                              ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs             Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.1




In this Hands-on Labs, it’s assumed that your target computer is connected to the internet. After installing
the operating system, log into your machine and ensure you perform software updates to bring your
systems up-to-date.


Part 2: Installing RHEL EPEL Repo on Centos 6.x
The EPEL repository gives you access to a large catalog of RPM’s which allows you to install unsupported
software, such as a different version of PHP or a package that does not exist in the official repos.


How to install RHEL EPEL repository on Centos 6.x

The following article will article Centos 6.x-based system using Fedora Epel repos, and the third party
remi package repos. These package repositories are not officially supported by CentOS, but they provide
much more current versions of popular applications like PHP or MYSQL.


Step 1: Install the extra repositories

1. The first step requires downloading some RPM files that contain the additional YUM repository
   definitions.

    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
    wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm


2. Once installed you should see some additional repo definitions under the ″/etc/yum.repos.d″
   directory.

    $ ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
    /etc/yum.repos.d/epel.repo
    /etc/yum.repos.d/epel-testing.repo
    /etc/yum.repos.d/remi.repo


Step 2: Enable the remi repository
The remi repository provides a variety of up-to-date packages that are useful or are a requirement for
many popular web-based services. That means it generally is not a bad idea to enable the remi
repositories by default.

3. First, open the ″/etc/yum.repos.d/remi.repo″ repository file using a text editor of your choice:

    sudo vim /etc/yum.repos.d/remi.repo

4. Edit the [remi] portion of the file so that the enabled option is set to 1. This will enable the remi
   repository.

    name=Les RPM de remi pour Enterprise Linux $releasever - $basearch

                                                                                                             4
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                               ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs           Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.1



    #baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
    mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
    failovermethod=priority


5. You will now have a larger array of yum repositories to install from.



Part 3: Install Joomla v3 CMS

Step 1: Install Jooma v3

You may download & install new Joomla version as usual, by performing the following procedure:

1. Download latest Joomla 3.x from official Joomla website:

    http://www.joomla.org/download.html

2. At the time writing this hands-on lab manual, it was version: "Joomla_3.0.1-Stable-
   Full_Package.zip" to your download directory.

    Note: We need to change to the download directory and move Joomla_3.x to web server home
    directory. To do this, perform the following procedure to transfer Joomla to web server root directory in
    CentOS server:

3. Change to the download directory and move "Joomla_3.x" to the web server "joomlagov"
   directory, as follows:

        # cd /home/netadmin/Downloads/

        # cp Joomla_1.5.18-Stable-Full_Package.zip /var/www/html

4. Change to the web directory and then extract "Joomla_3.0.1-Stable-Full_Package.zip", as
   follows:

        # cd /var/www/html/

        # unzip Joomla_3.0.1-Stable-Full_Package.zip

        # mv Joomla_3.0.1-Stable-Full_Packag joomlagov

5. Now we need to change the web server "joomlagov" directory owner from root user, as follows:

        # cd ..

        # chown -R apache.apache joomlagov/

6. We’re done with the web directory setup

                                                                                                           5
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                              ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs           Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.1




7. Now, fire-up your favorite web browser and enter in the URL: "http://localhost/joomlagov", as
   shown in Fig. 1. Choose your language, leave the default selection and complete the remaining
   required information, and then click Next to continue.




                                                                                                   Fig. 1a




                                                                                                   Fig. 1b


8. From Fig. 2, Database Configuration screen, read and verify that there are items marked with as No,
   which would indicate that your system doesn’t meet the minimum requirements for the installation. As
   can be observed our system meets the minimum requirement! Click Next to continue.



                                                                                                             6
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                              ICT105 – Ubuntu Server Administration Training
Global Open Versity ICT Labs            Step-By-Step Install Guide Joomla CMS on Ubuntu 10.04 LTS Server v1.1




                                                                                                        Fig. 2a




                                                                                                        Fig. 2b


    Database Type: "MySQL"
    Host Name: "localhost"
    Username: "root"
    Password: "password"
    Database Name: "joomla3"

    When done click Next to continue.

                                                                                                                  7
© April 2007, Kefa Rabah, G
								
To top