Thursday, 24 December 2015

How to Install Pydio on Centos 6.X


Pydio on Centos 6.X

Pydio is an Open source, secure and powerful online file sharing and synchronization software solution that can be an alternative to many online cloud storage systems. It can be accessed from the web, desktop or mobile platforms and hosting is private therefore you can implement your own security measures.

Requirments: Apache, Php, Mysql (LAMP)

Step 1: Create Database for Pydio

# mysql -u root -predhat -e "create database pydio;"
# mysql -u root -predhat -e "grant all privileges on pydio.* to pydio@'localhost' identified by 'redhat';"
# mysql -u root -predhat -e "grant all privileges on pydio.* to pydio@'%' identified by 'redhat';"
# mysql -u root -predhat -e "flush privileges;"

Step 2: Download and Installing Pydio File Hosting Server

# cd /mnt
# service iptables stop
# chkconfig iptables off
# wget https://download.pydio.com/qtev2upyln3hfi46pcya/pydio-enterprise-6.2.1.zip --no-check-certificate
# unzip pydio-enterprise-6.2.1.zip
# mv pydio-enterprise-6.2.1.zip /var/www/html/pydio
# chmod -R 777 /var/www/html/pydio/data/
# vi /etc/httpd/conf/httpd.conf

Find the line, "AllowOverride None" and Change it to "AllowOverride All"

AllowOverride All (Line Number 339)

--- save and quit (:wq) ---

Step 3: Open pydio on browser to load the web installer

https://ip-address/pydio/

1. Click on "Click here to continue to Pydio"
2. Click on the “Start Wizard” and follow on screen installer instructions….
3. Create Pydio Admin Account
4. Setup Languages
5. Configure Pydio MySQL Database
6. Click "Install Pydio Now"
7. Now open the https://ip-address/pydio/ again after installation and then login with admin Details or Newly Created User and Test it.

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Monday, 7 December 2015

How to Setup Chat Support On Website With Mibew Messenger on Centos/RHEL 6.X

Setup Chat Support On Your Website With Mibew Messenger

Mibew Messenger, also known as Open Web Messenger, is an open-source live/chat support application written in PHP and MySQL. It enables one-on-one chat assistance in real-time directly from your website. Just place the Mibew Messenger button at your site, the visitors of your site will be able to get assistance from your operators, technical support executives and customer support executives who help them by clicking on the chat button.

Step 1: Prerequisites

* First you have to install and configure LAMP server

Step 2: create a database called “mibewdb” and database user called “mibewuser” with password “redhat” for ProcessWire

# mysql -u root -p
Enter password:

mysql> create database mibewdb;
Query OK, 1 row affected (0.02 sec)

mysql> GRANT ALL ON mibewdb.* TO mibewuser@localhost IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.01 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye

Step 3: Getting Mibew

# cd /mnt && wget https://sourceforge.net/projects/webim/files/Mibew%20Messenger/1.6.5/mibew165.zip --no-check-certificate

Step 4: Create a directory called “mibew” under web root folder i.e /var/www/html/

# mkdir /var/www/html/mibew

Step 5: Copy and unzip the mibew installation file in /var/www/html/mibew/ folder

# cp mibew165.zip /var/www/html/mibew/
# cd /var/www/html/mibew/
# unzip mibew165.zip
# rm -rf mibew165.zip

Step 6: Set privileges to mibew directory with command

# chown -R root:apache /var/www/html/mibew/

Step 7: Edit file config.php file

# vi /var/www/html/mibew/libs/config.php

$webimroot = "/mibew";

#### Enter the MySQL details as shown below
*  MySQL Database parameters
 */
$mysqlhost = "localhost";
$mysqldb = "mibewdb";
$mysqllogin = "mibewuser";
$mysqlpass = "redhat";
$mysqlprefix = "";

---- save and quit (:wq) ----

Step 8: Begin Installation

Open up browser and go to to URL http://domain-name/mibew/install/index.php or http://ip-address/mibew/install/index.php

If everything seems ok, the following screen should appear. Click Create required tables link.
and follow the Screen for the Further Instructions

Step 9: login to chat as user admin with empty password. For security reason set the password immediately and remove the /mibew/install/ folder

# rm -fr /var/www/html/mibew/install/

Step 10: Now click on the Proceed to Login page and login as admin with empty password

Step 11: In the next page you will be asked to create your administrator login password and email as shown below


Step 12: From here, you can

– create/delete operators,

– find the waiting users,

– Search chat history,

– View the chat statistics,

– Setup common system behavior and chat options,

– Change administrator profile details and so on.

Step 13: How to add the chat button on my website

It’s very simple. Go to the Mibew admin console. You will see a link called button code in the middle of the admin console window. Open the link in the new window and copy the HTML code and you can paste them in your website at any place. Also can change the chat image using Choose image button and can change the chat window style as well.

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Saturday, 5 December 2015

Shell Script For Take Backup of Mysql Databases


Shell Script For Take Backup of Mysql Databases


Step 1: Create Directory For Backups Scripts & Backups

# mkdir -p /backups/db_backup /backups/scripts

Step 2: Create Backups Scripts

# vi /backups/scripts/db_backups.sh

#!/bin/bash
export path1=/backups/db_backup  ### Backup Path
date1=`date +%y%m%d_%H%M%S`
/usr/bin/find /backups/db_backup/* -type d -mtime +14 -exec rm -r {} \; 2> /dev/null  ### Retention For Backups of 15 Days
cd $path1/
mkdir $date1
USER="root"  ## Mysql User Name
PASSWORD="redhat"  ## Mysql User's Password
OUTPUTDIR="$path1/$date1"
MYSQLDUMP="/usr/bin/mysqldump"
MYSQL="/usr/bin/mysql"
HOST="localhost"
databases=`$MYSQL --user=$USER --password=$PASSWORD --host=$HOST \
-e "SHOW DATABASES;" | tr -d "| " | grep -v Database`
echo "` for db in $databases; do
   echo $db

       if [ "$db" = "performance_schema" ] ; then
       $MYSQLDUMP --force --opt --single-transaction --lock-tables=false --skip-events --user=$USER --password=$PASSWORD --host=$HOST --routines \
        --databases $db | gzip > "$OUTPUTDIR/$db.gz"
        else

$MYSQLDUMP --force --opt --single-transaction --lock-tables=false --events --user=$USER --password=$PASSWORD --host=$HOST --routines \
   --databases $db | gzip > "$OUTPUTDIR/$db.gz"
fi
done `"
/root/monitor.sh 99 | tee /root/backup_report >> /root/monthly_backup_report #to create a backup report in /root/backup_report file
cat /root/backup_report | mail -s "backup_report of Test Server (192.168.72.240) "  -r root@Test_Server deb.mind009@gmail.com  ### Mail the Backup Report But Need Monitoring Script for this Feature

--- save and quit (:wq) ---

Step 3: Schedule Backup Scripts on Crontab

## Then Schedule the script to Crontab for Run it As per a schedule, Here we are scheduling it Daily Basis at 12:00 AM

# crontab -e

0 0 * * * /backups/scripts/db_backups.sh > /dev/null

--- save and quit (:wq) ---

# crontab -l (To see the Scheduled Crontab List)

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Shell Script For Take Backup of Web Files on Centos/RHEL

Shell Script For Take Backup of Web Files on Centos/RHEL

Step 1: Create Directory For Backup Scripts and Backups

# mkdir -p /backups/web_backup /backups/scripts

Step 2: Create Backups Backup Script

# vi /backups/scripts/web_backups.sh

#!/bin/bash
export path1=/backups/web_backup ### Backup Path
date1=`date +%y%m%d_%H%M%S`

/usr/bin/find /backups/web_backup/* -type d -mtime +6 -exec rm -r {} \; 2> /dev/null
mkdir $path1/$date1  ### Retention For Backups of 7 Days
cp -r /var/www/html $path1/
cd $path1/html
for i in */; do /bin/tar -zcvf "$path1/$date1/${i%/}.tar.gz" "$i"; done
if [ $? -eq 0 ] ; then
rm -r $path1/html
fi

if [ `date +%d` -eq '01' ] ; then
mv /home/som/monthly_backup_report /root/Test_192.168.72.240_Backup_Report_`date +%B_%G --date="-1 day"`
fi

/root/monitor.sh 99 | tee /root/backup_report >> /root/monthly_backup_report ### to create a backup report in /root/backup_report file
cat /root/backup_report | mail -s "backup_report of Test Server (192.168.72.240)" deb.mind009@gmail.com ### Mail the Backup Report But Need Monitoring Script for this Feature

--- save and quit (:wq) ---

Step 3: Schedule The Script on Crontab

## Then Schedule the script to Crontab for Run it As per a schedule, Here we are scheduling it Daily Basis at 12:00 AM

# crontab -e

0 0 * * * /backups/scripts/web_backups.sh > /dev/null

--- save and quit (:wq) ---

# crontab -l (To see the Scheduled Crontab List)

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

How to Install utorrent on Centos/RHEL 6.X


Install utorrent on Centos/RHEL 6


Step 1: Install needed packages

# yum install -y wget glibc openssl* libgcc unzip

Step 2: Create sym link for libssl because the CentOS 6 has newer version of uTorrent required For x86_64

# ln -s /usr/lib64/libcrypto.so.0.9.8e /usr/lib64/libcrypto.so.0.9.8
# ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8

Step 3: Download uTorrent for Linux and Extract it

# cd /mnt && wget -qO - http://download.utorrent.com/linux/utorrent-server-3.0-ubuntu-10.10-27079.x64.tar.gz |tar xvzf -

Step 4: change the permission on uTorrent-server folder and link uTorrent server to the /user/bin directory

# chmod -Rf 777 /mnt/utorrent-server-v3_0/
# ln -s /mnt/utorrent-server-v3_0/utserver /usr/bin/uts

Step 5: Finally, run the commands below to start uTorrent (it will run on 8080 port by default)

# uts -settingspath /mnt/utorrent-server-v3_0/

Step 6: open the GUI on the Browser of the Torrent

http://192.168.72.243:8080/gui
User: admin
Pass: none

Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog.

Thursday, 3 December 2015

How to Install Lamp on Centos 7


Install Lamp on Centos 7
1. Install Apache:

# yum -y install httpd httpd-devel

2. Edit httpd.conf file:

# vi /etc/httpd/conf/httpd.conf

add this last line-
RewriteEngine on
CheckCaseOnly On

----Save & Quit (:wq)----

3. make logs directory:

# mkdir /logs

4. Go to /var/www/html :


# vi index.html

Make A HTML
add those line...

<html>
<marquee direction="left">
<font size="12" color="red">
!!!....Restricted zone....!!!
</font>
</marquee>
</html>

----Save & Quit (:wq)----

5. Install MySQL Database Server:

# yum install wget
# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
# rpm -ivh mysql-community-release-el6-5.noarch.rpm
# yum install -y mysql-server mysql mysql-devel

6. Start Mysqld Service:

# systemctl restart mysqld

7. Changing MySQL Root Password:


# mysql
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('new password') WHERE user='root';
mysql> FLUSH PRIVILEGES;
mysql> exit

8. Check by logging in:


# mysql -u root -p
Enter Password: <your new password>


mysql> show databases;
+--------------------------------+
| Database               |
+---------------------------------+
| information_schema |
| mysql                         |
+---------------------------------+
2 rows in set (0.00 sec)


mysql> exit

9. Install PHP5 Scripting Language:

# rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

# yum install -y  php56w php56w-cli php56w-mysql php56w-pdo php56w-pecl-memcache php56w-xml php56w-imap php56w-mbstring php56w-mcrypt php56w-common php56w-fpm       php56w-odbc php56w-devel  php56w-xmlrpc php56w-soap php56w-pecl-igbinary php56w-pdo php56w-ldap php56w-xml php56w-imap php56w-pear php56w-gd

10. Create a file named /var/www/html/info.php:


# vi /var/www/html/info.php


<?php
  phpinfo();
?>

----Save & Quit (:wq)----

11. Restart Apache to load php:

# systemctl restart httpd

12. Then point your browser to http://ip address/info.php:


Ex- http://192.168.72.249/info.php

13. Download this phpMyAdmin rpm:


# cd /var/www/html
# wget https://files.phpmyadmin.net/phpMyAdmin/4.4.10/phpMyAdmin-4.4.10-english.tar.gz

14. Extract the tar File & Rename it :


# tar -zxvf phpMyAdmin-4.4.10-english.tar.gz
# mv phpMyAdmin-4.4.10-english phpmyadmin

15. Edit the /etc/httpd/conf/httpd.conf File :


# vi /etc/httpd/conf/httpd.conf

Add those Lines : (line number 158)
<Directory /var/www/html/phpmyadmin>
    Options  -Indexes +Multiviews +FollowSymLinks
        DirectoryIndex index.php index.html
    AllowOverride All
    Allow from all
</Directory>

----Save & Quit (:wq)----

16. Rename the config.sample.inc.php File :

#cd /var/www/html/phpmyadmin

# mv config.sample.inc.php config.inc.php

17. Now needs a secret passphrase (blowfish_secret):


# vi /var/www/html/phpmyadmin/config.inc.php


$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
Just Add Password - $cfg['blowfish_secret'] = 'Your Password but wrong pass'


$cfg['blowfish_secret'] = 'wron pass'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

$cfg['Servers'][$i]['host'] = 'MySQL_Server_Name'; ← Database Server Hostname.

----Save & Quit (:wq)----

18. Start the httpd & mysql Service & stop iptables :

# systemctl enable httpd
# systemctl enable mysqld
# systemctl stop firewalld.service

and stop selinux

19. Point your browser to: http://ip.address/phpmyadmin :


ex- http://192.168.72.249/phpmyadmin
User Name: root
Password: Mysql_Password

---- DONE,Thanks ----

How to Install Web VMStat on centOS 6


Web VMStat Install on centos 6

Web-Vmstat it’s a small application written in Java and HTML which displays live Linux system statistics, such as Memory, CPU, I/O, Processes, etc. taken over vmstat monitoring command line in a pretty Web page with charts (SmoothieCharts) and diagrams through WebSocket streams using websocketd program.

Step 1: Install Web-Vmstat

# yum install wget nano unzip -y

Step 2. Now go to Veb-Vmstat official web page at and download the latest version

# wget https://github.com/joewalnes/web-vmstats/archive/master.zip

Step 3. Extract the downloaded master.zip

# unzip master.zip
# cd web-vmstats-master

Step 4. Web directory holds the HTML and Java files needed for the application to run in a Web environment. Create a directory under your system where you want to host the Web files and move all web content to that directory.

# mkdir /opt/web_vmstats
# cp -r web/* /opt/web_vmstats/

Step 5. Download and install websocketd streaming program.

# wget https://github.com/joewalnes/websocketd/releases/download/v0.2.9/websocketd-0.2.9-linux_386.zip (for 32 bit)
# wget https://github.com/joewalnes/websocketd/releases/download/v0.2.9/websocketd-0.2.9-linux_amd64.zip (for 64 bit)

Step 6. Extract the WebSocket.

# unzip websocketd-0.2.9-linux_amd64.zip
# cp websocketd /usr/local/bin/

Step 7. Now you can test it by running websocketd.

# websocketd --port=8080 --staticdir=/opt/web_vmstats/ /usr/bin/vmstat -n 1

Step 8. This step is optional and only works with init script supported systems.

# vi /etc/init.d/web-vmstats

Add the following content.

#!/bin/sh
# source function library
. /etc/rc.d/init.d/functions
start() {
                echo "Starting webvmstats process..."

/usr/local/bin/websocketd --port=8080 --staticdir=/opt/web_vmstats/ /usr/bin/vmstat -n 1 &
}

stop() {
                echo "Stopping webvmstats process..."
                killall websocketd
}

case "$1" in
    start)
       start
        ;;
    stop)
       stop
        ;;
    *)
        echo "Usage: stop start"
        ;;
esac

------ save and quit (:wq) ------

# chmod +x /etc/init.d/web-vmstats
# /etc/init.d/web-vmstats start

Step 9. Open a browser and use the following URL to display Vmstats system statistics.

http://ip:8080

Step 10. To display name, version and other details about your current machine and the operating system running on it. Go to Web-Vmstat files path and run the following commands.

# cd /opt/web_vmstats
# cat /etc/issue.net | head -1 > version.txt
# cat /proc/version >> version.txt

Step 11. Then open index.html file and add the following javascript code before <main id=”charts”> line.

# vi index.html

Use the following JavaScript code.

<div align='center'><h3><pre id="contents"></pre></h3></div>
<script>
function populatePre(url) {
    var xhr = new XMLHttpRequest();
    xhr.onload = function () {
        document.getElementById('contents').textContent = this.responseText;
    };
    xhr.open('GET', url);
    xhr.send();
}
populatePre('version.txt');
                </script>

------ save and quit (:wq) -------

Step 12. To view the final result refresh http://system_IP:8080

---- DONE,Thanks ----

Wednesday, 2 December 2015

How to Install OsCommerce on Centos/RHEL


INSTALL OsCommerce on Centos

Step 1: At First Configure LAMP, Disable selinux

Step 2: INSTALL osCommerce:
# cd /opt
# wget http://www.oscommerce.com/files/oscommerce-2.3.4.zip
# unzip oscommerce-2.3.4.zip
# mv oscommerce-2.3.4 /var/www/html/
# mv /var/www/html/oscommerce-2.3.4/ /var/www/html/oscommerce/
# chmod 777 /var/www/html/oscommerce/catalog/includes/configure.php
# chmod 777 /var/www/html/oscommerce/catalog/admin/includes/configure.php

Step 3: CREATE MYSQL DATABASE:

# mysql -u root -predhat

mysql> CREATE DATABASE oscommerce;
mysql> GRANT ALL PRIVILEGES on oscommerce.* to oscuser@localhost identified by 'your_password';
mysql> FLUSH PRIVILEGES;
mysql> \q

Step 4: Now open your favorite web browser and navigate to http://your_IP_address/oscommerce/catalog/install/index.php and follow the on-screen instructions.

Step 5: Post Installation Things:

# rm -rf /var/www/html/oscommerce/catalog/install
## Rename the Administration Tool directory located at /var/www/html/oscommerce/catalog/admin
## Set the permissions on /var/www/html/oscommerce/catalog/includes/configure.php to 644 (or 444 if this file is still writable).
## Set the permissions on /var/www/html/oscommerce/catalog/admin/includes/configure.php to 644 (or 444 if this file is still writable).
## Review the directory permissions on the Administration Tool -> Tools -> Security Directory Permissions page.
## The Administration Tool should be further protected using htaccess/htpasswd and can be set-up within the Configuration -> Administrators page.

---- DONE,Thanks ----

Tuesday, 1 December 2015

How to Install & Configure Redmine on RHEL/Centos 6x


Install & Configure Redmine on RHEL/Centos 6x

What is Redmine ?

Redmine is a flexible project management web application. Written using the Ruby on Rails framework, it is cross-platform and cross-database.

Features :

1. Multiple projects support
2. Flexible role based access control
3. Flexible issue tracking system etc.

Step: 1. Stop Iptables :

# service iptables stop
# chkconfig iptables off

Step: 2. Disable Selinux :

# vi /etc/sysconfig/selinux

SELINUX=disabled

-- Save & Quit (:wq)

Step: 3. Restart the Server :

# init 6

Step: 4. Install Prerequisites :

# yum install -y ruby-devel gcc-c++ openssl-devel httpd httpd-devel make ruby-rdoc libcurl-devel rubygem-rake zlib-devel curl-devel apr-devel apr-util-devel wget

Step: 5. Install Ruby :

# cd /tmp
# wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
# tar -zxvf ruby-2.1.2.tar.gz
# cd ruby-2.1.2
# ./configure
# make install
# cd ..
# rm -rf ruby-2.1.2.tar.gz ruby-2.1.2

Step: 6. To Check Ruby Version :

# ruby -v

Step: 7. Install Rubygems :

# cd /tmp
# wget http://production.cf.rubygems.org/rubygems/rubygems-2.2.2.tgz
# tar zxvf rubygems-2.2.2.tgz
# cd rubygems-2.2.2
# ruby setup.rb
# cd ..
# rm -rf rubygems-2.2.2.tgz rubygems-2.2.2

Step: 8. To Check Gems Version :

# gem -v

Step: 9. Install Passenger :

# gem install passenger
# passenger-install-apache2-module

Press Enter and press " ! " and make sure you select only the ruby one.

***LOOK CAREFULLY *after successfully installing it give codes .we must edit in our apache. FOR ME .It may be other for you. ==============================================================================================================
LoadModule passenger_module /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
==============================================================================================================

Step: 10. To Load the Passenger Module into Apache :

# vi /etc/httpd/conf/httpd.conf

Go, to the load module section and paste it.
Add the below line. In the module section. Line num 202.

LoadModule passenger_module /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/buildout/apache2/mod_passenger.so

Add the following line on line number 377.

<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>

-- Save & Quit (:wq)

Step: 11. Now, you can download the latest version of Redmine :

# cd /var/www/html
# wget http://www.redmine.org/releases/redmine-2.5.2.tar.gz
# tar -zxvf redmine-2.5.2.tar.gz
# mv redmine-2.5.2 redmine
# rm -rf redmine-2.5.2.tar.gz
# chown -R apache.apache /var/www/html/redmine
# chmod -R 755 /var/www/html/redmine
# touch /var/www/html/redmine/log/production.log
# chown root.apache /var/www/html/redmine/log/production.log
# chmod 664 /var/www/html/redmine/log/production.log


Step: 12. Start the Apache Server :

# service httpd restart
# chkconfig httpd on

Step: 13. Install Mysql Server :

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

Step: 14. Start Mysql Service :

# service mysqld restart
# chkconfig mysqld on

Step: 15. Set Mysql Root Password :

# mysql_secure_installation

Step: 16. Create Database for Redmine :

# mysql -u root -predhat

mysql> create database redminedb character set utf8;
mysql> grant all privileges on redminedb.* to redmine@'localhost' identified by 'password';
mysql> grant all privileges on redminedb.* to redmine@'%' identified by 'password';
mysql> flush privileges;
mysql> exit

Step: 17. Now, Install the Gem file and the bundler :

# gem install rake rack i18n rubytree RedCloth mysql coderay rails jquery-rails fastercsv builder mime-types awesome_nested_set activerecord-jdbc-adapter selenium-webdriver shoulda mysql2

# cd /var/www/html/redmine
# gem install bundler
# bundle install --without development test rmagick

Note: If you see any of the gem is not installing then go to.

# cd /var/www/html/redmine
# vi Gemfile

Commented the following line, Line no. 29

# gem "rmagick", ">= 2.0.0"

-- Save & Quit (:wq)

Step: 18. Setup the Database Connection for Redmine :

# cd /var/www/html/redmine/config
# mv database.yml.example database.yml
# vi database.yml

In the production section, update username, password and other parameters accordingly like so :

production:

adapter: mysql2
database: redmine
host: localhost
username: redmine
password: redhat
encoding: utf8

-- Save & Quit (:wq)

Step: 19. Create the Virtual host files for running Redmine :

# vi /etc/httpd/conf.d/redmine.conf

<VirtualHost *:80>
ServerName redmine

DocumentRoot /var/www/html
Alias /redmine /var/www//html/redmine/public

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/redmine>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /var/www/html/redmine/public>
PassengerEnabled on
SetHandler none
PassengerAppRoot /var/www/html/redmine
RailsBaseURI /redmine
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>

-- Save & Quit (:wq)

Step: 20. Restart Apache Server :

# service httpd restart

Step: 21. Set Environment to "production" Environment :

# cd /var/www/html/redmine/config
# vi environment.rb

If there is line uncomment it if not just proceed ahead.

ENV['RAILS_ENV'] ||= 'production'


Step: 22. In terminal, use following command.

# RAILS_ENV=production bundle exec rake generate_session_store
# RAILS_ENV=production bundle exec rake db:migrate
# RAILS_ENV=production bundle exec rake redmine:load_default_data

Type en when asked.

Step: 23. Rename dispatch CGI files in /redmine/public/ :

# cd /var/www/html/redmine/public
# mv dispatch.fcgi.example dispatch.fcgi
# cp htaccess.fcgi.example .htaccess

Step: 24. Fix rights for the apache user :

# cd /var/www/html
# chown -R apache:apache redmine
# chmod -Rf 777 redmine

Step: 25. Also,for configuration of email :

# cd /var/www/html/redmine/config
# cp configuration.yml.example configuration.yml
# vi configuration.yml

Just close.
You can configured the email as per your need.

Step: 26. Restart the Apache Server :

# service httpd restart

Step: 27. Point Your Web Browser & Type :

http://192.168.20.140/redmine
User: admin
Pass: admin

---- DONE,Thanks ----

How to Install Cpanel & WHM On CentOS/RHEL 6.X


Installing CPanel & WHM optimized for CentOS/RHEL 6.X

Link: http://www.tecmint.com/install-cpanel-whm-in-rhel-centos

Need to install and configure yum, epel.repo and remi.repo

# vi cat /etc/selinux/config
SELINUX=disabled

# service iptables stop
Set the hostname with FQDN

#vi /etc/sysconfig/network
kmi.server.com

# yum update

Install depandences

# yum install -y bind-devel gd-devel gd-progs gdbm-devel glibc-static lcms python-tools quota-devel sharutils tclx
Download latest cPanel

# cd /home
# wget -N http://httpupdate.cpanel.net/latest

Installing cPanel

# sh ./latest

Sit back and relax (don't let your laptop sleep or hybernate your terminal window!), my installation
CentOS 6 Install time: cPanel install finished 4 hour!

When installation is complted you will get this message

After ensuring that your firewall allows access on port 2087, you can configure your server.
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): 1. Open your preferred browser
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): 2. Type https://192.168.72.155:2087 in the address bar
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): 3. Enter the word root in the Username text box
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): 4. Enter your root password in the Password text box
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): 5. Click the Login button
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): Visit http://go.cpanel.net/whminit for more information about first-time configuration of your server.
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): Visit http://support.cpanel.net or http://go.cpanel.net/whmfaq for additional support
2014-01-03 19:29:23 714 ( INFO):
2014-01-03 19:29:23 714 ( INFO): Thank you for installing cPanel & WHM 11.40!

point this URL on address BAR https://192.168.72.155:2087 in the address bar

To manage WHM consol follow the URL

---- DONE,Thanks ----