SlideShare une entreprise Scribd logo
1  sur  40
FT228/3 Web Development Web Servers
Introduction Web  Browser Client Web  Server Server A web server is specialised software that responds to client (I.e. web browser) requests Every web site requires a web server to process client requests and ‘serve up’ the pages Web servers used to service Internet, intranets and extranets Note that web server in this context is software. Server machine  is also referred to as the web server.
System architecture ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Common web system architecture Web  Browser Application tier Database Client tier Middle tier Information  tier Application User interface. The client interacts with the middle tier to make requests and to retrieve data from the information tier Controls the interactions between  the application clients and application data.  Enforces business rules.  implements presentation logic.  Web server  typically supports this tier. Maintains data for the application.  Data typically stores in a relational database management system (RDBMS)
Hyper Text Transfer Protocol Resources: Databases Application e.g. “ Get  me a webpage” “ Post  this data to the server” Request e.g. “here’s the web page” Response Basic function of web server is to act as  HTTP server Web servers communicate with clients using a  Response-Request protocol: HTTP Web  Browser Client Web  Server Server
[object Object],[object Object],[object Object],[object Object],Client-Server model and HTTP
Client-Server model and HTTP ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Http:  Requests from client
Http:  Requests from client: HTML Examples <body> <form method= “post” action =“process.jsp”> Word to look up: <Input type = text Name =  “word”>  <input types = “submit”> </form> </body> HTML code for a form Indicates a  post  request Data in form is posted to the server
Http:  Requests from client: HTML Examples <body> <form method= “get” action =“process.jsp”> Word to look up: <Input type = text Name =  “word”>  <input types = “submit”> </form> </body> HTML code for a form Indicates a  get  request Not usually used for forms Sends any parameters in the query  string as  www.hostname?name=word&  etc
Http:  Response from web server ,[object Object],[object Object],[object Object],[object Object],[object Object],HTTP/1.1 200 OK Date: Thu, 22 July 1998 18:40:55 GMT Server: Apache 1.3.5 (Unix) PHP/3.0.6 Last-Modified: Mon, 19 July 1997 16:03:22 GMT Content-Type: text/html Content-Length: 12987 ...
HTTP Response Status Codes ,[object Object],[object Object],[object Object],[object Object],[object Object]
Accessing web servers ,[object Object],[object Object],[object Object],[object Object],[object Object],Protocol Domain name Page name
web server functionality ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Leading web servers Server Vendor Comment IIS (Internet Information Server) Microsoft Bundled with Windows operating system. Supports Active Server Pages Apache Freeware Free.  Most used web server.  Netscape Netscape Free.  High performance. Compatible with Unix or  Windows OSs
Leading web servers Server Vendor Comment Domino IBM Supports multiple operating systems. About $500 ONE  webserver SUN Cost about $1500. Supports multiple operating systems. Plus hundreds more….  E.g. Blazix See  ttp://www.macronimous.com/resources/web_servers_demystifyed.asp http://www.serverwatch.com/tutorials/article.php/1363221 Sambar Freeware Free Zeus Zeus About $1,500
Market Share for Web Servers Source: http://news.netcraft.com/archives/2005/08/01/web_server_survey_turns_10_finds_70_million_sites.html 70 million domains surveyed -0.08 0.82 580675 0.90 608121 Zeus -0.08 2.65 1864788 2.73 1842812 Sun -0.10 20.43 14384006 20.53 13871645 Microsoft -0.14 69.46 48895205 69.60 47030635 Apache Change Percent August 2005 Percent July 2005 Developer
Web server market share top 1000 companies Source:  http://www.port80software.com/surveys/top1000webservers/   May 2005 Survey of top 1000 companies Conclusions?
Comparisons Source: serverwatch.com Server Performance Reliability IIS 9 9 Ease of Use Support 8 8 Apache 10 10 6 9 Netscape 9 10 8 8 Sambar ( features ) 8 10 10 2
Selecting a web server Various criteria Performance  e.g. how many client requests per second can be processed? Load balancing? Ease of Use How easy to set up , administer, learn? Support What support is provided by the  vendor?  Reliability How robust is the web server? How liable to crash? How easily recovered?
Selecting a web server (cont.) See  http://www.serverwatch.com/tutorials/article.php/1363221 for examples of assessments ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Price How must does it cost to  buy and maintain? Operating system What operating system(s) does the web server support?  Security What security functionality is offered? e.g. SSL?
Proxy servers Proxy server : specific purpose web server: In an enterprise that uses the Internet, the  proxy server  is like a “buffer” between user computers’ and the Internet.  The proxy s erver sits between  the users’ workstations and the Internet so that the enterprise can ensure security and improved performance.  It intercepts all requests to the real server to see if   it can fulfill the requests itself. If not, it forwards the request to the real server.
Proxy Servers ,[object Object],[object Object]
Web servers ,[object Object],[object Object],[object Object],[object Object]
Internet Information Server ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Apache web server Most popular web server (almost 70% of all web sites use it –  Apache.org July 2005 ) Freeware.  Frequent updates. Maintained by the Apache Software  Foundation  - Website www.apache.org Welcome! - The Apache Software  Foundation.htm Runs on Unix, Linux and Windows operating systems Supports a range of server-side technologies, but can require additional software installation To support Java server pages, need  Tomcat  with Apache
Blazix web server ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Question ,[object Object],[object Object]
To support java server pages, require additional software:  Tomcat Tomcat  is a free open source implementation of java server pages and java servlets, developed as part of the Jakarta project  under the Apache Software Foundation  Tomcat can be used with Apache web server, or in standalone mode (It can also be installed to work with IIS or Netscape..) More info at: http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml Apache web server: Tomcat
Tomcat Operation ,[object Object],[object Object],[object Object],[object Object]
Extract source zip file into a directory on hard disk.  Default directory is jakarta-tomcat- version#. A set of subdirectories are automatically created (bin, conf, doc etc) Tomcat uses two  environment variables: environment variables  JAVA_HOME and CATALINA_HOME Tomcat Installation point to directory containing JDK  I.e. c:dk.1…. point to directory containing Tomcat c:akarta…etc Access through MS-DOS Or control panel Should be installed on lab machine but may want to install to zip drive
Tomcat environment variables ,[object Object],[object Object],[object Object],[object Object],[object Object]
From DOS prompt, go to directly where TomCat is installed e.g.  C:akarta-tomcat-…. Go to the subdirectory  in  To START: Type:  startup   into the DOS prompt This will start up Tomcat in another DOS window.  Tomcat server executes on TCP port 8080 (in case another  server is using the default port 80) Tomcat  - Starting up
To TEST: To test Tomcat, in browser type URL:  http://localhost:8080 / (or  http://127.0.0.1:8080/ ) This will access the Tomcat documentation welcome page if server working properly To STOP Tomcat when it is running : type  shutdown   at DOS prompt Tomcat  - Test/Stop
To configure Tomcat to find web files from your directory(e.g. U:drive) ,[object Object],[object Object],[object Object]
To point Tomcat to directories other than default (e.g. u:drive) ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],To point Tomcat to directories other than default (e.g. u:drive)
Tomcat  - to set up an application directory To create a new web application  (e.g. survey) in your web application directory Tomcat directory : 1. create a subdirectory of your WEBAPPs directory in which to hold the web application files. e.g.  > u:ebappsurvey This directory is now the top level directory for the web application SURVEY, accessed as  http://www.somedomainname/survey/
Tomcat  - setting up an application directory ,[object Object],[object Object],[object Object]
Typical Tomcat installation problems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Contenu connexe

Tendances (20)

Web Server - Internet Applications
Web Server - Internet ApplicationsWeb Server - Internet Applications
Web Server - Internet Applications
 
Web servers – features, installation and configuration
Web servers – features, installation and configurationWeb servers – features, installation and configuration
Web servers – features, installation and configuration
 
Html
HtmlHtml
Html
 
uniform resource locator
uniform resource locatoruniform resource locator
uniform resource locator
 
Client Server Architecture ppt
Client Server Architecture pptClient Server Architecture ppt
Client Server Architecture ppt
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
web server
web serverweb server
web server
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Lecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block BuildingLecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block Building
 
Unit 02: Web Technologies (1/2)
Unit 02: Web Technologies (1/2)Unit 02: Web Technologies (1/2)
Unit 02: Web Technologies (1/2)
 
Xml
XmlXml
Xml
 
Introduction to Web Services
Introduction to Web ServicesIntroduction to Web Services
Introduction to Web Services
 
Web app presentation
Web app presentationWeb app presentation
Web app presentation
 
IIS
IISIIS
IIS
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Web browsers and web servers
Web browsers and web serversWeb browsers and web servers
Web browsers and web servers
 

Similaire à Web Servers Explained - Architecture, HTTP, IIS vs Apache

web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt20521742
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side ProgrammingMilan Thapa
 
Web server hardware and software
Web server hardware and softwareWeb server hardware and software
Web server hardware and softwareVikram g b
 
Introducing asp
Introducing aspIntroducing asp
Introducing aspaspnet123
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
 
Introduction server Construction
Introduction server ConstructionIntroduction server Construction
Introduction server ConstructionJisu Park
 
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMSkoolkampus
 
Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2jamram82
 
Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server iSyaiful Ahdan
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Serverwebhostingguy
 
Web Database
Web DatabaseWeb Database
Web Databaseidroos7
 

Similaire à Web Servers Explained - Architecture, HTTP, IIS vs Apache (20)

web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.pptweb-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
web-servers3952 (1)qwjelkjqwlkjkqlwe.ppt
 
5-WebServers.ppt
5-WebServers.ppt5-WebServers.ppt
5-WebServers.ppt
 
5-WebServers.ppt
5-WebServers.ppt5-WebServers.ppt
5-WebServers.ppt
 
Servlet by Rj
Servlet by RjServlet by Rj
Servlet by Rj
 
Server Side Programming
Server Side ProgrammingServer Side Programming
Server Side Programming
 
Web server hardware and software
Web server hardware and softwareWeb server hardware and software
Web server hardware and software
 
Introducing asp
Introducing aspIntroducing asp
Introducing asp
 
Web Server Primer
Web Server PrimerWeb Server Primer
Web Server Primer
 
Web Server Primer
Web Server PrimerWeb Server Primer
Web Server Primer
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
Introduction server Construction
Introduction server ConstructionIntroduction server Construction
Introduction server Construction
 
Servers names
Servers namesServers names
Servers names
 
Servers names
Servers namesServers names
Servers names
 
21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS21. Application Development and Administration in DBMS
21. Application Development and Administration in DBMS
 
Dh2 Apps Training Part2
Dh2   Apps Training Part2Dh2   Apps Training Part2
Dh2 Apps Training Part2
 
Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server i
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
 
Web Database
Web DatabaseWeb Database
Web Database
 

Plus de webhostingguy

Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Frameworkwebhostingguy
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guidewebhostingguy
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3webhostingguy
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serverswebhostingguy
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidationwebhostingguy
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreementwebhostingguy
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...webhostingguy
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...webhostingguy
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructurewebhostingguy
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.pptwebhostingguy
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy webhostingguy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandiserswebhostingguy
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Productswebhostingguy
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mbwebhostingguy
 

Plus de webhostingguy (20)

File Upload
File UploadFile Upload
File Upload
 
Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Framework
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guide
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web servers
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidation
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreement
 
Notes8
Notes8Notes8
Notes8
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructure
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.ppt
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandisers
 
OLUG_xen.ppt
OLUG_xen.pptOLUG_xen.ppt
OLUG_xen.ppt
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Products
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mb
 
Reseller's Guide
Reseller's GuideReseller's Guide
Reseller's Guide
 

Web Servers Explained - Architecture, HTTP, IIS vs Apache

  • 2. Introduction Web Browser Client Web Server Server A web server is specialised software that responds to client (I.e. web browser) requests Every web site requires a web server to process client requests and ‘serve up’ the pages Web servers used to service Internet, intranets and extranets Note that web server in this context is software. Server machine is also referred to as the web server.
  • 3.
  • 4. Common web system architecture Web Browser Application tier Database Client tier Middle tier Information tier Application User interface. The client interacts with the middle tier to make requests and to retrieve data from the information tier Controls the interactions between the application clients and application data. Enforces business rules. implements presentation logic. Web server typically supports this tier. Maintains data for the application. Data typically stores in a relational database management system (RDBMS)
  • 5. Hyper Text Transfer Protocol Resources: Databases Application e.g. “ Get me a webpage” “ Post this data to the server” Request e.g. “here’s the web page” Response Basic function of web server is to act as HTTP server Web servers communicate with clients using a Response-Request protocol: HTTP Web Browser Client Web Server Server
  • 6.
  • 7.
  • 8.
  • 9. Http: Requests from client: HTML Examples <body> <form method= “post” action =“process.jsp”> Word to look up: <Input type = text Name = “word”> <input types = “submit”> </form> </body> HTML code for a form Indicates a post request Data in form is posted to the server
  • 10. Http: Requests from client: HTML Examples <body> <form method= “get” action =“process.jsp”> Word to look up: <Input type = text Name = “word”> <input types = “submit”> </form> </body> HTML code for a form Indicates a get request Not usually used for forms Sends any parameters in the query string as www.hostname?name=word& etc
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. Leading web servers Server Vendor Comment IIS (Internet Information Server) Microsoft Bundled with Windows operating system. Supports Active Server Pages Apache Freeware Free. Most used web server. Netscape Netscape Free. High performance. Compatible with Unix or Windows OSs
  • 16. Leading web servers Server Vendor Comment Domino IBM Supports multiple operating systems. About $500 ONE webserver SUN Cost about $1500. Supports multiple operating systems. Plus hundreds more…. E.g. Blazix See ttp://www.macronimous.com/resources/web_servers_demystifyed.asp http://www.serverwatch.com/tutorials/article.php/1363221 Sambar Freeware Free Zeus Zeus About $1,500
  • 17. Market Share for Web Servers Source: http://news.netcraft.com/archives/2005/08/01/web_server_survey_turns_10_finds_70_million_sites.html 70 million domains surveyed -0.08 0.82 580675 0.90 608121 Zeus -0.08 2.65 1864788 2.73 1842812 Sun -0.10 20.43 14384006 20.53 13871645 Microsoft -0.14 69.46 48895205 69.60 47030635 Apache Change Percent August 2005 Percent July 2005 Developer
  • 18. Web server market share top 1000 companies Source: http://www.port80software.com/surveys/top1000webservers/ May 2005 Survey of top 1000 companies Conclusions?
  • 19. Comparisons Source: serverwatch.com Server Performance Reliability IIS 9 9 Ease of Use Support 8 8 Apache 10 10 6 9 Netscape 9 10 8 8 Sambar ( features ) 8 10 10 2
  • 20. Selecting a web server Various criteria Performance e.g. how many client requests per second can be processed? Load balancing? Ease of Use How easy to set up , administer, learn? Support What support is provided by the vendor? Reliability How robust is the web server? How liable to crash? How easily recovered?
  • 21.
  • 22. Proxy servers Proxy server : specific purpose web server: In an enterprise that uses the Internet, the proxy server is like a “buffer” between user computers’ and the Internet. The proxy s erver sits between the users’ workstations and the Internet so that the enterprise can ensure security and improved performance. It intercepts all requests to the real server to see if it can fulfill the requests itself. If not, it forwards the request to the real server.
  • 23.
  • 24.
  • 25.
  • 26. Apache web server Most popular web server (almost 70% of all web sites use it – Apache.org July 2005 ) Freeware. Frequent updates. Maintained by the Apache Software Foundation - Website www.apache.org Welcome! - The Apache Software Foundation.htm Runs on Unix, Linux and Windows operating systems Supports a range of server-side technologies, but can require additional software installation To support Java server pages, need Tomcat with Apache
  • 27.
  • 28.
  • 29. To support java server pages, require additional software: Tomcat Tomcat is a free open source implementation of java server pages and java servlets, developed as part of the Jakarta project under the Apache Software Foundation Tomcat can be used with Apache web server, or in standalone mode (It can also be installed to work with IIS or Netscape..) More info at: http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml Apache web server: Tomcat
  • 30.
  • 31. Extract source zip file into a directory on hard disk. Default directory is jakarta-tomcat- version#. A set of subdirectories are automatically created (bin, conf, doc etc) Tomcat uses two environment variables: environment variables JAVA_HOME and CATALINA_HOME Tomcat Installation point to directory containing JDK I.e. c:dk.1…. point to directory containing Tomcat c:akarta…etc Access through MS-DOS Or control panel Should be installed on lab machine but may want to install to zip drive
  • 32.
  • 33. From DOS prompt, go to directly where TomCat is installed e.g. C:akarta-tomcat-…. Go to the subdirectory in To START: Type: startup into the DOS prompt This will start up Tomcat in another DOS window. Tomcat server executes on TCP port 8080 (in case another server is using the default port 80) Tomcat - Starting up
  • 34. To TEST: To test Tomcat, in browser type URL: http://localhost:8080 / (or http://127.0.0.1:8080/ ) This will access the Tomcat documentation welcome page if server working properly To STOP Tomcat when it is running : type shutdown at DOS prompt Tomcat - Test/Stop
  • 35.
  • 36.
  • 37.
  • 38. Tomcat - to set up an application directory To create a new web application (e.g. survey) in your web application directory Tomcat directory : 1. create a subdirectory of your WEBAPPs directory in which to hold the web application files. e.g. > u:ebappsurvey This directory is now the top level directory for the web application SURVEY, accessed as http://www.somedomainname/survey/
  • 39.
  • 40.