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...
Step-by-Step Guide
-
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) ,, -
Step 2: you can get it from java.sun.com
-
Step 3: Below are the steps to install Tom Cat Apache server:
-
Step 4: a)Download the windows version of Tom Cat Apache server.
-
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.
-
Step 6: Go to C:\apache-tomcat-6.0.29\conf\server.xml and change 8080 to 1979(or any port greater than 1024)
-
Step 7: Save the file server.xml and restart the computer.
-
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.
-
Step 9: Browse to C:\apache-tomcat-6.0.29\webapps
-
Step 10: Create a folder say MyJsp
-
Step 11: Inside that MyJsp folder create a .txt File and rename it to index.jsp
-
Step 12: Open the index.jsp file in notepad and put the following text into that Hello World!
-
Step 13: Save the file.
-
Step 14: Now browse the below URL to see your first JSP file.
-
Step 15: To create an environment variables in Windows XP
-
Step 16: go to Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables -> System variables -> New.
-
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
Nicole Castillo
Professional writer focused on creating easy-to-follow crafts tutorials.
Rate This Guide
How helpful was this guide? Click to rate: