How to Install Tom Cat Apache Server on Windows when IIS Is Already There

You need to have JDK 1.6 installed on your system in order for Tomcat 6.0 to work properly. ,you can get it from java.sun.com,Below are the steps to install Tom Cat Apache server:,a)Download the windows version of Tom Cat Apache server., Select...

17 Steps 1 min read Advanced

Step-by-Step Guide

  1. Step 1: You need to have JDK 1.6 installed on your system in order for Tomcat 6.0 to work properly.

    To run your Apache server go to Start >> Run >> C:\apache-tomcat-6.0.29\bin\startup.bat To stop your Apache server go to Start >> Run >> C:\apache-tomcat-6.0.29\bin\shutdown.bat Now start preparing to run your first JSP page :
    Type http://localhost:8080/ in the browser if nothing opens.

    Type http://localhost/ this will open IIS pages.

    This means port 8080 is already captured by IIS so we need to set a different port for Apache Server. ,,, Now for first jsp page: ,,,,,, http://localhost:1979/myJsp/index.jsp In Case you are having any issue or for your further convenience you can create two environment variables, CATALINA_HOME and JAVA_HOME as described below:
    CATALINA_HOME :
    C:\apache-tomcat-6.0.19 (Exactly not this,Depends on your installed version) JAVA_HOME :
    C:\Program Files\Java\jdk1.6.0_03 (Exactly not this, Depends on your installed version) ,,
  2. Step 2: you can get it from java.sun.com

  3. Step 3: Below are the steps to install Tom Cat Apache server:

  4. Step 4: a)Download the windows version of Tom Cat Apache server.

  5. Step 5: Select 6.0.29--Binary Distributions--Core--32 Bit Windows Zip Unzip the downloaded zip file and move folder "apache-tomcat-6.0.29" with all its content to C: drive.

  6. Step 6: Go to C:\apache-tomcat-6.0.29\conf\server.xml and change 8080 to 1979(or any port greater than 1024)

  7. Step 7: Save the file server.xml and restart the computer.

  8. Step 8: Now again restart the apache by Start -- Run -- C:\apache-tomcat-6.0.29\bin\startup.bat Then browse http://localhost:1979/ Apache pages should come.

  9. Step 9: Browse to C:\apache-tomcat-6.0.29\webapps

  10. Step 10: Create a folder say MyJsp

  11. Step 11: Inside that MyJsp folder create a .txt File and rename it to index.jsp

  12. Step 12: Open the index.jsp file in notepad and put the following text into that Hello World!

  13. Step 13: Save the file.

  14. Step 14: Now browse the below URL to see your first JSP file.

  15. Step 15: To create an environment variables in Windows XP

  16. Step 16: go to Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables -> System variables -> New.

  17. Step 17: Enter the name and value for both the variables if it is not there.

Detailed Guide

To run your Apache server go to Start >> Run >> C:\apache-tomcat-6.0.29\bin\startup.bat To stop your Apache server go to Start >> Run >> C:\apache-tomcat-6.0.29\bin\shutdown.bat Now start preparing to run your first JSP page :
Type http://localhost:8080/ in the browser if nothing opens.

Type http://localhost/ this will open IIS pages.

This means port 8080 is already captured by IIS so we need to set a different port for Apache Server. ,,, Now for first jsp page: ,,,,,, http://localhost:1979/myJsp/index.jsp In Case you are having any issue or for your further convenience you can create two environment variables, CATALINA_HOME and JAVA_HOME as described below:
CATALINA_HOME :
C:\apache-tomcat-6.0.19 (Exactly not this,Depends on your installed version) JAVA_HOME :
C:\Program Files\Java\jdk1.6.0_03 (Exactly not this, Depends on your installed version) ,,

About the Author

N

Nicole Castillo

Professional writer focused on creating easy-to-follow crafts tutorials.

49 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: