Posts

Showing posts from April, 2014

Tomcat Installation

As a pre-requisite for the installation of Tomcat , you need to have Java installed. Check my previous post for the detailed instruction for  the Java Installation and setting up the necessary environment variables for the Java to work. Download the Tomcat Installation file [root@localhost tomcat]# mkdir -p /usr/tomcat    [root@localhost tomcat]# cd /usr/tomcat/    root@localhost tmp]# wget https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz    --2014-04-01 01:32:13-- https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz    Resolving archive.apache.org... 192.87.106.229, 140.211.11.131, 2001:610:1:80bc:192:87:106:229    Connecting to archive.apache.org|192.87.106.229|:80... connected.    HTTP request sent, awaiting response... 200 OK    Length: 7831716 (7.5M) [application/x-gzip]    Saving to: `apache-tomcat-7.0.39.tar.gz' ...

Tomcat Installation

As a pre-requisite for the installation of Tomcat , you need to have Java installed. Check my previous post for the detailed instruction for  the J ava Installation and setting up the necessary environment variables for the Java to work. Download the Tomcat Installation file [root@localhost tomcat]# mkdir -p /usr/tomcat    [root@localhost tomcat]# cd /usr/tomcat/    root@localhost tmp]# wget http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz    --2014-04-01 01:32:13-- http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz    Resolving archive.apache.org... 192.87.106.229, 140.211.11.131, 2001:610:1:80bc:192:87:106:229    Connecting to archive.apache.org|192.87.106.229|:80... connected.    HTTP request sent, awaiting response... 200 OK    Length: 7831716 (7.5M) [application/x-gzip]    Saving to: `apache-tomcat-7.0.39.tar.gz' ...

Java Installation on Linux

Java can be installed on Linux as Download Java ( JDK 6 Update 24 )  https://www.oracle.com/technetwork/java/javase/downloads/java-se-6u24-download-338091.html    Creating a Directory for the Java Installation file [root@localhost Desktop]# mkdir -p /usr/java    [root@localhost Desktop]# cd /usr/java/    [root@localhost java]# du -sh jdk-6u24-linux-i586.bin    82M   jdk-6u24-linux-i586.bin    [root@localhost java]# chmod 777 jdk-6u24-linux-i586.bin    [root@localhost java]# ls -ltr jdk-6u24-linux-i586.bin    -rwxrwxrwx 1 ankit ankit 84927175 Apr 1 01:18 jdk-6u24-linux-i586.bin   Installing the Java  [root@localhost java]# ./jdk-6u24-linux-i586.bin    [root@localhost Desktop]# ln -s /usr/java/jdk1.6.0_24/bin/java /usr/bin/java    Finally check the version of the Java as [root@localhost bin]# java -version   java version "1.6.0_24"...

Java Installation on Linux

Java can be installed on Linux as Download Java ( JDK 6 Update 24 )  http://www.oracle.com/technetwork/java/javase/downloads/java-se-6u24-download-338091.html    Creating a Directory for the Java Installation file [root@localhost Desktop]# mkdir -p /usr/java    [root@localhost Desktop]# cd /usr/java/    [root@localhost java]# du -sh jdk-6u24-linux-i586.bin    82M   jdk-6u24-linux-i586.bin    [root@localhost java]# chmod 777 jdk-6u24-linux-i586.bin    [root@localhost java]# ls -ltr jdk-6u24-linux-i586.bin    -rwxrwxrwx 1 ankit ankit 84927175 Apr 1 01:18 jdk-6u24-linux-i586.bin  

Source Installation of Apache

For the source installation the Apache web server following  are the steps:- 1. Download  the Apache Web Server as # wget http://archive.apache.org/dist/httpd/httpd-2.2.24.tar.gz   2. Extract the compressed file as [root@localhost ~]# tar -zxvf httpd-2.2.24.tar.gz 3. Run the configuration file as cd /tmp/httpd/httpd-2.2.24    ./configure --enable-so --enable-expires --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-headers --enable-ssl --enable-http --disable-userdir --enable-rewrite --enable-deflate --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-proxy-ajp --enable-proxy-balancer --enable-cgi --disable-dbd --enable-modules=most --with-mpm=worker --prefix=/usr/local/apache2   configure:- It is the configuration for httpd --enable  :-  Used for installing the specific modules to be used by Apache. If not used the Apache will be installed with all the modules. ...