0% found this document useful (0 votes)
72 views9 pages

1808210048, Program No 10 (Web Tech)

The document outlines the steps to install TOMCAT web server and APACHE to access webpages through the servers. It involves installing JDK and setting the JAVA_HOME variable. Then downloading JRE and setting JRE_HOME. Tomcat is downloaded and extracted to C:\web page\tomcat. Files in the tomcat conf folder are edited to change the port and enable web applications. Environment variables like CATALINA_HOME are set. Tomcat is started from the bin folder and can be accessed on localhost:9999. Files can be run on the server by placing them in the webapps folder.

Uploaded by

hello
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views9 pages

1808210048, Program No 10 (Web Tech)

The document outlines the steps to install TOMCAT web server and APACHE to access webpages through the servers. It involves installing JDK and setting the JAVA_HOME variable. Then downloading JRE and setting JRE_HOME. Tomcat is downloaded and extracted to C:\web page\tomcat. Files in the tomcat conf folder are edited to change the port and enable web applications. Environment variables like CATALINA_HOME are set. Tomcat is started from the bin folder and can be accessed on localhost:9999. Files can be run on the server by placing them in the webapps folder.

Uploaded by

hello
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Program No.

10

Objective:- Install TOMCAT web server and APACHE. Access the


above developed webpage through these servers.

Configuration Step:-

Step 1: Installation of JDK: Before beginning the process of installing Tomcat on your
system, ensure first the availability of JDK on your system program directory. Install it on
your system if not already installed (because any version of tomcat requires the Java 1.6 or
higher versions) and then set the class path (environment variable) of JDK. To set the
JAVA_HOME Variable: you need to specify the location of the java run time environment to
support the Tomcat else Tomcat server can not run. This variable contains the path of JDK
installation directory. set JAVA_HOME=C:\Program Files\Java\jdk16 Note: it should not
contain the path up to bin folder. Here, we have taken the URL path according to our
installation convention. For Windows OS, go through the following steps:

Note: it should not contain the path up to bin folder. Here, we have taken the URL path
according to our installation convention.

For Windows OS, go through the following steps:

My Computer->properties->advance->Environment Variables->System Variable-


>New-
>set the Variable name = JAVA_HOME and variable value = C:\Program
Files\Java\jdk16.

Now click on all the subsequent ok buttons one by one. It will set the JDK path.

Step 2: Download the JRE and setup the variable


path. For setting the class path variable for JRE, do like

this:

My Computer->properties->advance->Environment Variables-> System Variable-


>New-

Name: Deval Jhingran


Roll No. 1808210048
>set the Variable name = JRE_HOME and variable value = C:\Program
Files\Java\jre18.0.

Now click on all the subsequent ok buttons one by one. It will set the JRE path

Step 3: 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.

Steps 4: Unzip the file and place it in C drive by making a folder name as tomcat which is
under a folder name webproject.

apache-tomcat-9.0.50 file is as:

C:web paget/tomcat/ apache-tomcat-9.0.50.

Step 5: Now make the changes in the files of tomcat files which is located
as: C:\web page\tomcat\apache-tomcat-9.0.50\conf

A) Here,In Context open it in text_editor and change context into context


reloadable=”tru

Name: Deval Jhingran


Roll No. 1808210048
Now Save the file.

A) Now, open file named as Server in text_editor and change connector Port as 9999
and save it.

B) Again, open file named as web in text_editor and change to true from false and save it.

Step 8: For setting the class path variable, do like this:

My Computer->properties->advance->Environment Variables-> System Variable-


>New-
>set the Variable name = CATALINA_HOME and variable value = C : \ web page \
tomcat

Name: Deval Jhingran


Roll No. 1808210048
\apache-tomcat-9.0.50

Step 9:start the tomcat server from:

C:\web page\tomcat\apache-tomcat-9.0.50\bin

Here,click on the startup batch file to start the tomcat server .

Step 10: It will start in command prompt and wait till it execute its command.

Name: Deval Jhingran


Roll No. 1808210048
Step 11: Now you can run your tomcat server on any web browser by using localhost:9999.

OUTPUT: Hence the tomcat server is successfully installed .You can run your page on the
server by keeping the file in a folder (name as CODEBYME) under the webapps.

C:\Program Files\web page\apache-tomcat-9.0.50-windows-x64\apache-tomcat-


9.0.50\webapps\sessiontracking

You can run the file by starting the tomcat server and then running the file on browser as:

Name: Deval Jhingran


Roll No. 1808210048
Tomcat server starting window:-

Name: Deval Jhingran


Roll No. 1808210048
Running window for Cookie program:-

Name: Deval Jhingran


Roll No. 1808210048
Name: Deval Jhingran
Roll No. 1808210048
Name: Deval Jhingran
Roll No. 1808210048

You might also like