Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support.

Similar presentations


Presentation on theme: "Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support."— Presentation transcript:

1

2 Web Servers Installation and Configuration

3 May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support a programming class. The programming class will need a web server that provides directories for each student to create html pages, images, and cgi scripts. In addition, the students will need to run java servlets on the machine. Provide a solution to this scenario including the software of choice and how it would be configured.

4 May 24, 2001 CIS System Administration A Definition of Terms Intranet / Internet Server / Client WWW / HTML URL http://cabrillo.cc.ca.us:80/ctc/index.html

5 May 24, 2001 CIS System Administration The Roadmap 1. Choose the Software 2. Install the Software 3. Configure the Software 4. Setup the Users 5. Test the Software

6 May 24, 2001 CIS System Administration Choosing the Software Netscape FastTrack Server Netscape Enterprise Server Microsoft Internet Information Server Apache Web Server Java Web Server iPlanet Web Server FastTrack Edition 4.1

7 May 24, 2001 CIS System Administration Software Installation Binaries – Platform: Intel i386 OS: Linux – Vendor: Red Hat – rpm –ihv apache_1.3.X – Vendor: Caldera – pkgadd OS: UNIX – Vendor: SCO – custom Source – www.apache.org/dist/httpd www.apache.org/dist/httpd apache_1.3.20.tar.Z

8 May 24, 2001 CIS System Administration Apache Distribution Structure conf – configuration files: httpd.conf www or htdocs – Document Root bin – utlilities and httpd binary cgi-bin – CGI programs man – online manual pages log – log files: error_log access_log libexec – Dynamic Storage Object modules include – programmers development files

9 May 24, 2001 CIS System Administration Configuring Apache: httpd.conf Configuring the Server – ServerName – ServerRoot – Port – StartServers Min Max – LoadModule Configuring the Documents – DocumentRoot – UserDir – ScriptAlias – DirectoryIndex Configuring User Access – User – Group

10 May 24, 2001 CIS System Administration Setting Up the Users Add accounts for all programmers – useradd -m Create a public html subdirectory – mkdir public_html Populate directory with initial files – index.html *.gif *.jpg Set access permissions – chmod o+r,o-w *; chmod o+rx,o-w public.html Add any desired.htaccess files

11 May 24, 2001 CIS System Administration Testing the Installation Start the web server (apachectl or httpd) Start up a browser Set the URL address to http://localhosthttp://localhost Visit user sites with: http://localhost/~usernamehttp://localhost/~username Run a CGI script

12 May 24, 2001 CIS System Administration Adding Java Servlet Support Apache tomcat Java Servlet Web Development Kit (JSWDK) Allaire Jrun from Live Software ServletExec from New Atlanta Java Web Server from Sun

13 May 24, 2001 CIS System Administration Installing Apache Tomcat http://jakarta.apache.org/tomcat – Implements Servlet 2.2 and JSP 1.1 APIs – Installable as: Binaries Source DSO module: mod_jserv_tomcat.so Use port 8080 if running as separate server Access w/ URL: http://host:8080/servlet/ServletName


Download ppt "Web Servers Installation and Configuration May 24, 2001 CIS System Administration Problem Statement The class topic is setting up a Linux server to support."

Similar presentations


Ads by Google