How to use Tomcat on pdc-amd01

1. Make sure you are in your home directory: cd ~
2. Download Tomcat: wget http://ftp.wayne.edu/apache/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.tar.gz
3. Unzip package: tar -xzvf apache-tomcat-6.0.14.tar.gz
4. Go into your tomcat directory: cd apache-tomcat-6.0.14
5. Go into the tomcat conf directory: cd conf
6. The ports that are opened to outside access are 8080 through 9000. You now need to find an open port within that range. Open firefox and try connecting to http://pdc-amd01.poly.edu:PORT where PORT is a port number. If nothing comes up then that is a free port.
7. Open up server.xml for editing: nano server.xml
8. Find the line "< Connector port="8080" protocol="HTTP/1.1" .."



9. Change the port number to the free port you found. Press Ctl+x to save and quit.
10. Open up tomcat-users.xml for editing: nano tomcat-users.xml
11. Within the < tomcat-users > and </tomcat-users > tag enter the following to create yourself a user: < user username="USER" password="PASS" roles="standard,manager"/>. Replace USER and PASS with the appropriate values. Press Ctl+x to save and quit.



12. Go into the tomcat bin directory: cd ../bin
13. Run tomcat: ./startup.sh
14. Using your internet browser you can connect to pdc-amd01.poly.edu:PORT or using SSH TUNNELING to access the Tomcat server
15. IMPORTANT:Once you are finished working. Shut down your instance of Tomcat by running ./shutdown.sh from within the Tomcat bin directory.
16. The next time you want to startup tomcat all you need to do is run the startup.sh shell script.
17. Still doesn't work? email help@pdc-lab.poly.edu