Software requirement
Start and Shutdown Tomcat Server:
- Operation System (Windows, Mac OS X, Ubuntu)
- JDK. Download from Here and Install
- Apache Tomcat Server
- WebGoat war file. Download WebGoat war
Download and Install Apache Tomcat Server on Windows, Mac OS X, Ubuntu
Windows
- Goto http://tomcat.apache.org --> Downloads --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} is the latest upgrade number) --> Binary Distributions --> Core --> "ZIP" package (e.g., "apache-tomcat-8.0.{xx}.zip", about 8 MB).
- Create your project directory, say "d:\myProject" or "c:\myProject". UNZIP the downloaded file into your project directory. Tomcat will be unzipped into directory "d:\myProject\apache-tomcat-8.0.{xx}".
- For ease of use, we shall shorten and rename this directory to "d:\myProject\tomcat".
Mac OS X
- Goto http://tomcat.apache.org --> Download --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} denotes the latest upgrade number) --> Binary distribution --> Core --> "tar.gz" package (e.g., "apache-tomcat-8.0.{xx}.tar.gz", about 8 MB)
- To install Tomcat:
- Goto "~/Downloads", double-click the downloaded tarball (e.g., "apache-tomcat-8.0.{xx}.tar.gz") to expand it into a folder (e.g., "apache-tomcat-8.0.{xx}")
- Move the extracted folder (e.g., "apache-tomcat-8.0.{xx}") to "/Applications".
- For ease of use, we shall shorten and rename this folder to "tomcat".
Configure Tomcat Server
- Open tomcate-users.xml file under "Tomcat_Home\conf\"
- Enable the Tomcat's manager by adding the highlighted lines, inside the <tomcat-users> elements:
<tomcat-users>
<role rolename="manager-gui"/>
<user username="manager" password="xxxx" roles="manager-gui"/>
</tomcat-users>
Copy the WebGoat.war to the Tomcat directory.:
Windows
copy webgoat-container-7.0.1.war and paste to D:\myProject\tomcat\
Ubuntu
sudo cp webgoat-container-7.0.1.war /var/lib/tomcat/webapps/
Mac OS X
sudo cp webgoat-container-7.0.1.war /Applications/tomcat/webapps/
Windows
copy webgoat-container-7.0.1.war and paste to D:\myProject\tomcat\
Ubuntu
sudo cp webgoat-container-7.0.1.war /var/lib/tomcat/webapps/
Mac OS X
sudo cp webgoat-container-7.0.1.war /Applications/tomcat/webapps/
Start and Shutdown Tomcat Server:
Windows
1. Navigate to bin folder under tomcat directory by window Command Prompt
Write below command to run tomcat server
startup
Type below command to stop tomcat server
shutdown
Ubuntu and Mac OS X
1. Goto to bin folder under tomcat directory using Terminal
Write below command to run tomcat server
sudo ./startup.sh
Type below command to stop tomcat server
sudo ./shutdown.sh
After starting tomcat server, Open browser and enter url like http://localhost:8080/webgoat_war_filename/ on browser address bar
Example: http://localhost:8080/webgoat-container-7.0.1/
Log in as admin with Username is 'webgoat' and Password is 'webgoat'Ubuntu and Mac OS X
1. Goto to bin folder under tomcat directory using Terminal
Write below command to run tomcat server
sudo ./startup.sh
Type below command to stop tomcat server
sudo ./shutdown.sh
After starting tomcat server, Open browser and enter url like http://localhost:8080/webgoat_war_filename/ on browser address bar
Example: http://localhost:8080/webgoat-container-7.0.1/
No comments:
Post a Comment