Saturday, December 17, 2011

OpenDS Directory Server

OpenDS is a directory server entirely written in java and fully compliment with LDAP protocol version 3.The main features of OpenDS are

  • OpenDS is a open Source Directory server
  • OpenDS is simple to install and configure.
  • OpenDS contains rich features and provides excellent performance
  • You can extend OpenDS to add custom capabilities.
  • You can easily embed OpenDS in your own application or test framework.
In this article, we will see how we can configure OpenDS in Rhel5.

Download the OpenDS zip file from Here

Once you got the Zip file, extract to a location. Go to the extracted location and in bin directory execute the command

. /setup

A GUI interface will start. The Configuration proceeds in the following,

Click Next .In The Next screen select the Host Name ,LDAP Listener port , Administration Connector Port and Password.The LDAP Listener Port is 389.In most cases it is taken as 10389 , since any port opened above the 1024 can be restarted by any user.If the port is below 1024,then some of the actions on these ports may be done only by root user.The administration connector port is chosen as 4444 by default.Enter the Password and remember since this will be used when we connect to control panel to perform operations on server.

In the Next screen , Select whether this is a standalone server or it is a replication server.In a replication server topology when one server goes down the other server will be available and provides the support to application.Select the Standalone Server.  

In the next screen , select the Directory Data Information.You can use the default one "dc=example,dc=com".

In the next screen , you will be shown with all the configurations.Check them and if they are OK,click the Finish.

 It takes a few minutes for configuring the server and directory data.Once every thing goes fine ,you will see the below screen.Click the Control Panal and enter the password that we configured previously.You will shown a screen with the Directory Data.We can add users, groups in this screen.

By This we completed the configuration of OpenDS server.
More Articles to Come...
Read More

Wednesday, December 14, 2011

Configure RED 5 Media Server

In This article, we will see how we can configure RED 5 media server. We will build and configure red 5 servers from source.

Download the apache ant and configure the APACHE_ANT variable.

Download apache ivy.

For apache ivy use, svn co ivy

Once we have the ivy source, 

cd ivy 

ant jar ( create a jar file in /build/artifact/jars)

cp /software/ivy/build/artifact/jars/ivy.jar /software/apache-ant-1.8.2/lib (copy the jar to apache ant lib directory)

Now download the red 5 source using

Once we have the Source, 

cd red-0.9.1 

ant ( run the command where build.xml file is available)

Once the ant command returns, go to the red-0.9.1/dist/ and 

./ &

Once everything is started, we can see the red5 server in our local host as

Read More

Configure Subversion in RHEL

Subversion (referred as SVN) is a software versioning and revision control system. Developers use this to maintain current and historical versions of file like source code, web pages and other documentation.
In this article we will see how we can configure subversion client in Rhel and access a svn site to download the source code.

We will download the latest gz file from

Once downloaded, extract the contents .Follow the steps to build and configure the svn tool in Linux. In order to build and configure svn we need the apxs tool available in Linux.

To find apxs location type   
whereis apxs

If apxs is not installed in your system, install the httpd-devel rpm from your yum repository.

Once apxs is available, go to the extracted library,

cd subversion-1.2.1
./configure --with-apxs=/usr/sbin/apxs
make check (takes some time for checking)
make install

If everything goes fine, we have the svn available.

Try to access a location using

More articles to come, Happy coding….

Read More

Monday, November 28, 2011

Apache http Server (Basics Configurations)

Apache Http Server is an open-Source Web server that is being used by many organizations for hosting their applications. Apache Http server when used with a J2ee application server as a back end can provide lot of features to the applications and developers. In this article we will see how we can install and configure apache http server in RHEL5.

If you need to configure apache from source, check here.

  • Install the Http Server (Or) check whether it is available
  • Starting and Stopping Server.
  • Construct an Site and associate an IP address to it
  • Construct multiple Sites with Same IP address
  • Construct an Alias to the Site.

1. Install the Http Server (Or) check whether it is available
The Http server packages are already available in the Linux. We just need to find whether they are available .Once we are sure they are available we need to install the server. The packages that we need to check are httpd, httpd-devel and apr.

We can check using,

Yum list installed | grep httpd

If they are already installed, then the list will be shown by using this command.

2. Starting and Stopping Server
       In Order to start the server we can use,

     Service httpd start

      service httpd restart : restarts the Server
      service httpd stop : Stops the Server 

The configuration file is available in location /etc/httpd/.

3. Construct a Site and associate an IP address to it
       Now we will see how we can construct a sample site .First create an html file for the site. The files that apache web server will check will be available in /var/www/ location. For every site we create we can create files here or we can create some other places and provide the location in the configuration file. Create the directories and files like,

mkdir -p /var/www/virtual/

Create an index.html page with some sample html content.

vi /var/www/virtual/


Now it’s time to edit the configuration file, open the configuration file like,

vi /etc/httpd/conf/httpd.conf

Search for a term NameVirtualHost

Uncomment the NameVirtualHost and add the ip address besides it like

NameVirtualHost (This is the ip address on which we are hosting our application)

Note: The NameVirtualHost allows hosting multiple sites with single IP address.

Once the NameVirtualHost is uncommented.Add the VirtualHost element at the end of the file likes,

The Virtual host configuration block is used to create an independent set of configuration directives that apply to a particular hostname or IP address. It is often used in conjunction with system level IP aliasing or dummy network interfaces in order to establish one or more "virtual" servers which all run on the same physical machine. Add the following at the end of the file,

<VirtualHost *:8080>
    DocumentRoot /var/www/virtual/
    ErrorLog logs/
    CustomLog logs/ common

The elements are pretty much explanatory. The ‘DocumentRoot’ is the file that will be displayed for the user when he enter the site.It is the index.html file that we created in the location /var/www/virtual/ ServerName is the name of the host and others belong to logs locations.

Once the configuration in the httpd.conf file is done, we need to make changes to the /etc/hosts file.

The hosts file is a computer file used in an operating system to map hostnames to IP addresses.

Vi /etc/hosts and add the following at the end,

Once these changes are done, we need to restart the network and http server like,

Service network restart
Service httpd restart

Once these are ok with no issues, try accessing from a browser and we will see the index.html page.

4. Construct multiple Sites with Same IP address

Create file locations for the second site like,

mkdir -p /var/www/virtual/

Create an index.html page with some sample html content.

vi /var/www/virtual/

Once these are done, modify the /etc/hosts file and add a new host like,

# do not remove the following line, or various programs
# that require network functionality will fail.

Once the file is modified, restart the network. After this update the httpd.conf file with this,

    DocumentRoot /var/www/virtual/
    ErrorLog logs/
    CustomLog logs/ common
Restart the httpd server and access

5. Construct an Alias to the Site.

In order to create an alias for a site, we need modify the /etc/hosts and httpd.conf file like

I have added the as an alias to

Restart the network and edit the httpd.conf file.For the site we are creating an alias.

    DocumentRoot /var/www/virtual/
    ErrorLog logs/
    CustomLog logs/ common

Once done, restart httpd server and access and which gives us the same pages.
Read More