Using And Installing OpenVZ On CentOS 6.3

multiple Virtual Private Servers (VPS) by the use of OpenVZ on the same hardware, similar to Xen and the Linux Vserver projectThe OpenVZ kernel patch is licensed under the GPL license, and the user-level tools are under the QPL license


1 Installing OpenVZ

To Install of OpenVZ wwant to add OpenVZ repository to yum

cd /etc/yum.repos.d

wget http://download.openvz.org/openvz.repo
rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ


open openvz.repo


vi openvz.repo


name=OpenVZ RHEL6-based kernel

 Continue reading “Using And Installing OpenVZ On CentOS 6.3” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 8, 2012 at 1:55 am

Categories: CentOS, OpenVZ, Virtualization   Tags:

Using Rex To Automate Your Datacentre

I actually “hate” to be honest  in my day to day work I come across a lot automate is the better thing to do a task more than once. To automate process I have confusion what tool going to use for that Puppet, Chef, CFEngine etc.


Things like Puppet, Chef etc. come along and when you look at their documentation, well, it’s huge and takes a lot of time to install and configure properly.thi automation thing is used to do that on 40-50 servers.


Rex is a lightweight framework and small I got excited and saw the possibilities of using it. The big advantage to Rex from your “master” server can use your ssh keys so you don’t have to install daemons on your target servers.

How Rex is structured

After creating rex project after installation check the install docs: http://rexify.org/get/index.html rexify should be used a new folder will be created with very clean structure.

  • All your hosts and usernames and passwords will be there in file Rexfile
  • perl module (.pm file) will be there in the lib folder so you can test if your connection with your server group is working


Continue reading “Using Rex To Automate Your Datacentre” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:53 am

Categories: Automation, CentOS   Tags:

Installing Apache2 With PHP5 And MySQL Support On CentOS 6.3

LAMP stands for Linux, Apache, MySQL, PHP.this method show how to install an Apache2 webserver on a CentOS 6.3 server with PHP5 support (mod_php) and MySQL support.

1 Preliminary Note

the hostname used server1.example.com with the IP address These settings may difer for others want to replace them appropriate.

2 Installing MySQL 5

Installation of MySQL

yum install mysql mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

Continue reading “Installing Apache2 With PHP5 And MySQL Support On CentOS 6.3” »

Be the first to comment - What do you think?  Posted by Aniruddh - at 1:42 am

Categories: Apache, CentOS, Web Server   Tags:

Apache Server Setup with Mod_Fcgid, PHP5 on CentOS 6

This document explains how to setup Apache web server with mod_fcgid, which is high performance alternative to mod_cgi or mod_cgid, it starts a sufficient number instances of the CGI program to handle concurrent requests, and these programs remain running to handle further incoming requests.

1. Make sure SELinux is disabled before starting

open SELinux configuration on vim editor (/etc/sysconfig/selinux)

vi  /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.

Save the file and reboot the machine
2. Setup EPEL repository as mod_fcgid is not available in default CentOS repository

Continue reading “Apache Server Setup with Mod_Fcgid, PHP5 on CentOS 6” »

Be the first to comment - What do you think?  Posted by Aniruddh - January 1, 2012 at 11:08 pm

Categories: Apache, CentOS   Tags:

Ghosting The Machine

This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). Credit goes to ‘topdog’ for this.

You might have a small office where you customise one desktop just how you like it and need to roll this out to N other PC’s or simply want a backup of a server or desktop to another machine or even to an image file.

The main tool here is netcat which is extremely powerful and has a multitude of other great uses that won’t be covered here.

Target Machine:

** Boot to linux rescue mode with networking (CentOS works fine)

Initiate netcat to listen on port 30 – # nc -l -p | dd of=/dev/sda (assuming the hard drive is sda and not hda):

# nc -l -p 30 | dd of=/dev/sda

Source Machine:

Dump the contents of the disk to the target PC – #dd if=/dev/sda | nc

Continue reading “Ghosting The Machine” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 16, 2011 at 11:53 am

Categories: CentOS   Tags:

Clean djbDNS DNS Server On CentOS – dnscache And tinydns – A To Z

What is djbDNS? And why do we use djbDNS? There is a new point of view to serve the dns service – each of the dns server functionalities is a separate service, like authority, cache, forward and so on. The other difference is the daemon-tools which will rapidly restart services to prevent zombies.


CentOS 5.4 clean installation

Log in as root.

# yum update

# yum install gcc

# mkdir pkg

# cd pkg

The first step is to install the daemon-tools

# cd ~/pkg

# wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz

# gunzip daemontools-0.76.tar

# tar -xpf daemontools-0.76.tar

# rm -f daemontools-0.76.tar

# cd admin/daemontools-0.76

# vi src/conf-cc

Append the following line at the end of the gcc line

-include /usr/include/errno.h

# ./package/install

Continue reading “Clean djbDNS DNS Server On CentOS – dnscache And tinydns – A To Z” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 14, 2011 at 7:26 am

Categories: CentOS   Tags:

LDAP User Authentication On CentOS 5.x

how you can set up LDAP user authentication on a CentOS 5.x system.

Domain name: shadow.com

LDAP Server IP:

Server Configuration

Packages needed: openldap-servers

[root@icewalker ~]# vi /etc/openldap/slapd.conf

Test your configuration by running

slaptest -u


[root@icewalker ~]# cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG

[root@icewalker ~]# service ldap start

[root@icewalker ~]# chkconfig ldap on

Now we need to set up our base, authentication and group files. That is, we’ll establish our basic parameters for the LDAP server, then migrate over (most of) the user accounts, and (most of) the group accounts

[root@icewalker ~]# cd /usr/share/openldap/migration

[root@icewalker ~]# ./migrate_base.pl > base.ldif

Continue reading “LDAP User Authentication On CentOS 5.x” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 13, 2011 at 7:13 am

Categories: CentOS   Tags:

Installing Linux Integration Services v2.1 Hyper-V R2 On CentOS 5

When installed on a virtual machine that is running a supported Linux operating system, Linux Integration Services for Hyper-V provides the following functionality:

Driver support for synthetic devices: Linux Integration Services supports the synthetic network controller and the synthetic storage controller that were developed specifically for Hyper-V.
Fastpath Boot Support for Hyper-V: Boot devices now take advantage of the block Virtualization Service Client (VSC) to provide enhanced performance.
Timesync: The clock inside the virtual machine will remain synchronized with the clock on the host.
Integrated Shutdown: Virtual machines running Linux can be shut down from either Hyper-V Manager or System Center Virtual Machine Manager, using the “Shut Down” command.
Symmetric Multi-Processing (SMP) Support: Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine.

1. Download Linux Integration Components v2.1

a. Download Linux Integration Components v2.1 from Microsoft Download site.

b. Extract the .exe file into a temp folder. You will need only LinuxIC v21.iso file.

c. Place the LinuxIC v21.iso file into your VM host server where you can mount the ISO as a CDROM for your Centon Virtual Machine.

2. Installation

You will need Development Tools installed to be able to compile the Integration Components. You could do that by running yum

yum groupinstall "Development Tools"

As the root user, mount the CD in the virtual machine by issuing the following commands at a shell prompt

mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom

Copy Linux Integration Services to the virtual machine and unmount CDROM that no longer needed

mkdir /opt/linux_ic_v21_rtm
cp –R /mnt/cdrom/* /opt/linux_ic_v21_rtm
umount /mnt/cdrom

Continue reading “Installing Linux Integration Services v2.1 Hyper-V R2 On CentOS 5” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 12, 2011 at 7:05 am

Categories: CentOS, Linux   Tags:

Integrating XCache Into PHP5 (Fedora 13/CentOS 5.5 & Apache2)

How to integrate XCache into PHP5 on a Fedora 13 or CentOS 5.5 system (with Apache2). From the XCache project page: “XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load.” It’s similar to other PHP opcode cachers, such as eAccelerator and APC.

1 Preliminary Note

I have tested this on a Fedora 13 server with the IP address where Apache2 and PHP5 are already installed and working. I’ll use Apache’s default document root /var/www/html in this tutorial for demonstration purposes. Of course, you can use any other vhost as well

2 Checking PHP5′s Current State

install XCache, let’s find out about our PHP5 installation. To do this, we create the file info.php in our document root /var/www/html

vi /var/www/html/info.php

call that file in a browser:

see that another PHP opcode cacher such as eAccelerator or APC is installed, you must remove it before you install APC:

For eAccelerator

Continue reading “Integrating XCache Into PHP5 (Fedora 13/CentOS 5.5 & Apache2)” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 10, 2011 at 9:31 am

Categories: Apache, CentOS, PHP   Tags:

vtiger Installation On CentOS 5.x

vtiger is the CRM / complete tracking solution I have looked for and needed for 10 years!!! An all-in-one tracking everything organic package that ties everything together – because every task has many things associated with it, and vtiger works the way people think.

I will install vtiger in the /var/www/html/vtigercrm directory on a CentOS 5.x (i386) system where /var/www/html is the document root of the web site where I install vtiger.

vtiger can be installed

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mapserver php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy phpmyadmin mysql mysql-server httpd libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel zlib xFree86-dev openssl openssl-devel krb5-devel imap-2004d

Continue reading “vtiger Installation On CentOS 5.x” »

Be the first to comment - What do you think?  Posted by Aniruddh - December 9, 2011 at 6:44 pm

Categories: CentOS   Tags:

Next Page »