Saturday, September 29, 2007

Apache Web server – Virtual Host:

Hi friends,

This article gives you the basic configuration of how to host multiple web sites within a single apache web server. Recent survey reports say that almost 65% of internet websites are hosted on apache web servers only. The recent version of apache web servers provides improved multiple options like both name and IP virtual hosting, supports large number of different development modules, enabled logging, graphic tool for configuration, etc. This article explains about setting up virtual host in a Linux server.

1. Installing the package:
Check for existence
#rpm –qa | grep httpd
Else install using rpm or yum.

2. Service daemon - httpd
#chkconfig –level 345 on httpd
#service httpd restart
#/etc/init.d/httpd restart
#apachectl restart

3. Edit /etc/httpd/conf/httpd.conf:

Port for which this Web server should listen and respond
Listen 80

User/group to run httpd daemon
User nobody
Group nobody

Pass the real server name in the /etc/hosts file top:
ServerName webserver

Assign virtual host IP (may be public/private)

Enter the virtual host details:

This is the core area for setting up your web page. Virtualhost parameter should be passed with your assigned IP and port number can also be added followed with semi colon. ServerAdmin parameter sends the mail in case of errors (don’t worry for the existence). Documentroot is the place from which the site flourishes; make sure the path is correct and also set permission as 755 recursively to the designated user. For testing create index.html inside the document with some meaningful message. Servername is the URL used for calling your website and just an DNS pointed namespace. Serveralias for short name and subdomain names. Four type of log format is available in the same httpd.conf file, choose any one as you wish (not mandatory). Errorlog and transferlog parameter specifies the path for storing the website logs(make sure the path is valid).

DocumentRoot /www/
ServerAlias *
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
ErrorLog /misc/wwwlogs/loguinfo_error.log
TransferLog /misc/wwwlogs/loguinfo_access.log

DocumentRoot /www/
ServerAlias *
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
ErrorLog /misc/wwwlogs/loguworld_error.log
TransferLog /misc/wwwlogs/loguworld_access.log

4. Name resolution

Local name resolve: Edit /etc/hosts webserver localhost.localdomain localhost

For resolving the namespace in open, add the DNS entry as below


5. Restart the dependent service and reboot the system

Ok…In server, open your browser try and , if it result with the correct index.html content respectively ………. Cheers… you have hosted a website… good job…


Setting up Grub Password

Hi Friends,

Nowadays, I get less time for writing a blog. So I try to write some article at frequent intervals. This article explains about setting up the grub password. Initially the users can able to change the root user password by entering in the single user mode. This can result in changing the root password as granted. The following gives you the step by step procedure for setting up the password for entering into the single mode or fiddling into the command boot option.

Setting up GRUB password:
Login as root

Enter grub mode:
# grub
Use md5crypt to encrypt password:
grub> md5crypt
Password: ******
Encrypted: $1$jxcdN0$hVHViq1aiPf8FziuGJGZp0

Copy down encrypted password:

Exit grub mode:
grub> quit

Modify file /etc/grub.conf:
Insert encrypted password in between "splashimage..." and "title..."
password --md5 $1$jxcdN0$hVHViq1aiPf8FziuGJGZp0
title BIZ DESK (2.4.20-8elx)
Save edited file

Boom!!!!! , now if you try to enter into the command single user mode, it will ask for the password by the switch “p”.


Wednesday, September 12, 2007


Hi friends,

This articles helps you to setup a NIS server and client in your network. In active directory environment we create all user account in the server and user can login in any domain pc and also configured with roaming profile to have their profile loaded from some shared location. Likewise in Linux environment, this setup is possible by setting up the NIS server. This enables us to have the user created in the server premise and allow to login in the client machines and stores their home directory in the server. Please find the steps below for implementing the NIS server and client.

Package Information :
Related packages - ypbind, ypserv and yp-tools.
Check for
#rpm -qa | grep yp
or install the respective package.

Let us consider

In NIS server :
1. Install the packages
2. Create a share for storing their home directories.
#mkdir /share
3. #vi /etc/exports [add the below entry]
/share/username *,sync)
4. #useradd username -d /share/username
5. #passwd -d username [empty password] or
#passwd username [set some password]
6. set the domain name for NIS
#domainname REDHAT
7. Install yp
#cd /var/yp
8. Restart all dependent services.
#service nfs restart
#service portmap restart
#service ypserv restart
#service yppasswdd restart

In NIS client :
1. #mkdir /share
2. #vi /etc/auto.master
/share /etc/auto.misc --timeout=60
3. #vi /etc/auto.misc
username rw,soft,init
4. #authconfig [Select NIS server and give next enter the server name and ipaddress]
5. Restart the service
#service autofs restart

Thats the end , in the clent machine open the new console and enter the username and password created in the NIS server and you will be able to login now with that credentials and their respective home directory data are stored in the server share location.

Please let me know if you have any queastions.


Saturday, September 8, 2007


Hi friends

Many people want their personnel email account(yahoo, hotmail, gmail, aol,etc) in their email browsers like outlook, thubderbird, Zombra, etc. Most of the free email providers their account setting details for pop3 and imap account. Microsoft have found the easy resolution for getting your hotmail account into the outlook. The term used is called as microsoft outlook connector and can br freely downloaded from the microsoft website. This tool works only with outlook 2003 and outlook 2007. We can also configure the hotmail in outlook 2000 and 2002 by configuring the http account. Please find the step by step procedure for confgiuring the hotmail account in outlook email client.

Configuring Hotmail in Outlook 2003 and 2007 :
* Close your hotmail account in any browser.
* Download and install Microsoft Office Outlook Connector.
* Select Outlook Connector | Add a New Account... from the menu in Outlook.
* Type your Windows Live Hotmail address under E-mail address.
* Enter your Windows Live Hotmail password under Password.
* Type your name under Name.
* Click OK.
* Restart Outlook.

Configuring Hotmail in Outlook 2000 and 2002 :
* Close your hotmail account in any browser.
* Select Tools | E-mail Accounts... from the menu in Outlook.
* Make sure Add a new e-mail account is selected.
* Click Next.
* Choose HTTP as the Server Type.
* Click Next again.
* Enter your account details in the E-mail Accounts dialog box:
1. Type your full name under Your Name.
2. Type your Windows Live Hotmail address under E-mail Address.
3. If Outlook has not entered it for you automatically, type your Hotmail email address User Name.
4. Type your Windows Live Hotmail password under Password.
5. Select Hotmail in the HTTP Mail Service Provider box.
* Click Next.
* Click Finish.
* Restart Outlook.

Please do post if you have any questions.


Sunday, September 2, 2007

Important Port Numbers

Hi friends
This articles gives you the list of important port numbers. The knowledge of the important port numbers are vital in terms of managing the domains and services. The below are list of important port numbers,

FTP(DATA) 20,21




Kerberos 88

POP3 110

NNTP 119

RPC 135

IMAP4 143

LDAP 389


SMB 445 - Log shipping and DB seeding



Routing Group Master 691

IMAP4(SSL) 993

POP3(SSL) 995

Global Catalog 3268,3269

RDP 3389

Tcp/ip - 64327 - for exchange DAG log shipping and DB seeding