Installing Tomcat/Apache - A Tutorial/Guide
Tomcat is java based web server, support jsp, servlet, and java application, but does not work as application server. Tomcat need java environment to execute jsp and servlet or java class files. This needs to be JVM installed on server or machine, before running Tomcat.
Java, JDK, JRE, JVM is available freely from sun, and other third party
This Tutorial provides useful information regarding installation of Tomcat server 6 [similar for Tomcat 7]. The step by step installations are shown properly. Every step will followed by a capture of screen that enable user to better understand what they are doing currently and what they will be doing after. This will help you installing and using Tomcat in Windows platform before continuing into installation. A small example is below to configure Tomcat.
Installation of JDK Java
Download JDK or JRE our site http://www.virtual-tutor.co.cc/p/tools.html. Sun provides different executable file for Windows and Linux operating system version. Sun provide JDK for Linux in .bin or tar.gz format, and for Windows .exe format. After downloading file from sun, install JDK [below graphics represent lower version of JDK/JRE, also similar to above provided version] simply double click or through command prompt
Default installation directory for java in Windows is Program file à Java, and Linux /opt. Tomcat 6 version requires at least java1.5 version.
When jdk is installed in default location, need to configuration the environment variable
Environment Variable Setting
Environment variable is next to set java home in system environment. This will help to know others applications where java is installed and where java files have to compile. JAVA_HOME variable name needs to set in environment variable as variable name and variable value as the java home directory c:\ jdk1.5.0. Step to do this setting, go to my computer icon and right click and go to properties
My computer->right click->properties->
Advance tab->environment variables ->
User variables –> New
Click on new button and new pop up will open.
In variable value, enter your java path where java is installed in system.
Tomcat Installation
The process of installing Tomcat 6.0 begins here from now. It takes various steps for installing and configuring the Tomcat 6.0.
For Windows OS, Tomcat comes in two forms: .zip file and .exe file (the Windows installer file). Here we are exploring the installation process by using the .exe file. First unpack the zipped file and simply execute the '.exe' file.
The latest release of Tomcat server 7.0 can be downloaded from our site http://www.virtual-tutor.co.cc/p/tools.html.
Installation of Tomcat server 7.0 is quite similar 6.0
The process of installing Tomcat 6.0 begins here from now. It takes various steps for installing and configuring the Tomcat 6.0.
Step1:
For Windows OS, Tomcat comes in two forms: .zip file and .exe file (the Windows installer file). Here we are exploring the installation process by using the .exe file. First unpack the zipped file and simply execute the '.exe' file.
A Welcome screen shot appears that shows the beginning of installation process. Just click on the 'Next' button to proceed the installation process.
Steps 2:
A screen of 'License Agreement' displays.
Click on the 'I Agree' button.
Step 3:
A screen shot appears asking for the 'installing location'
Choose the default components and click on the 'Next' button.
Step 4:
A screen shot of 'Configuration Options' displays on the screen. Choose the location for the Tomcat files as per your convenience. You can also opt the default Location
The port number will be your choice on which you want to run the tomcat server. The port number 8080 is the default port value for tomcat server to proceed the HTTP requests. The user can also change the 'port number' after completing the process of installation; for this, users have to follow the following tips.
Go to the specified location as " Tomcat 6.0 \conf \server.xml ". Within the server.xml file choose "Connector" tag and change the port number.
Now, click on the 'Next' button to further proceed the installation process.
Step 5:
A Window of Java Virtual Machine displays on the screen
This window asks for the location of the installed Java Virtual Machine. Browse the location of the JRE folder and click on the Install button. This will install the Apache tomcat at the specified location.
Step 6:
A processing window of installing displays on the screen.
To get the information about installer click on the "Show details" button
Step 7:
A screen shot of 'Tomcat Completion' displays on the screen.
Click on the 'Finish' button.
Step 8:
A window of Apache Service Manager appears with displaying the running process.
Let the running process goes on.
Step 9:
After completing the installation process, the Apache Tomcat Manager appears on the toolbar panel like shown in the below picture.
Configuring Tomcat Manager
To Configure the Tomcat Manager, there are two ways; either user can configure Tomcat directly from the toolbar panel or can configure it from Control Panel Section.
(i) Configuring from toolbar Panel
To Configure Apache Tomcat web server from the toolbar panel, you have to press 'double click' on the appeared icon.
A configured window appears on the desktop. Now, just click on the Startup button. The installation process will be completed.
(ii) Configuration from the Control Panel
To configure the Apache Tomcat Manager, Users will have to follow the follwing steps:
Click on the Start up button -- select Control Panel -- Administrator Tool -- Services -- select Apache Tomcat.
The following screen displays on the monitor.
Double click on the Apache Tomcat. The window of Apache Tomcat Properties appears on the screen.
Now, Click on the start up button. The Apache Tomcat is now ready to function.
To operate it, follow the below steps of processing.
Start the Tomcat Server:
1. Start the tomcat server from the bin folder of Tomcat 6.0 directory by double clicking the "tomcat6.exe" file. or create a shortcut of this .exe file at your desktop
2. Now Open web browser and type URL http://localhost:8080 in the address bar to test the server
3. To Stop the Tomcat Server: Stop the server by pressing the "Ctrl + c" keys
The screen of Apache Tomcat software looks like this:
0 comments:
Post a Comment