Skip to: Site Navigation

Linux Tutorial 9

Introduction to the Apache HTTP Server

What ia a Web Server?

1. A computer program that is responsible for accepting HTTP requests from clients, which are known as web browsers, and serving them HTTP responses along with optional data contents, which usually are web pages such as HTML documents and linked objects (images, etc.).
2. A computer that runs a computer program as described above.

Source: http://en.wikipedia.org/wiki/Web_server

The Apache HTTP Server is one of the most popular servers on the world wide web. It can run on my platforms including FreeBSD, Linux, and Windows. Your iPhone can run the Apache HTTP server as well.

PC-BSD Apache HTTP Server

For the first two quarters, all of your web projects were saved on the teacher's Linux box (computer). The only way you could view your web project was directly on the teacher's desktop or through SSH. Starting with this Tutorial, you will now begin to edit your web projects on the teacher's PC-BSD Apache HTTP Server. This means you will be able to view your web project with your browswer now. Your teacher will provide the URL.

Preparation

Please log into your user accounts and SSH to your teacher's PC-BSD computer.

Your teacher will now add you to the Apache group so you can create and edit your website on the Apache server.

You will need to create a folder in /usr/local/www/data/ as follows:

$ cd /usr/local/www/data
$ mkdir Your Username, i.e. mkdir tommy
$ cd /usr/home/Your Username/Tutorial

Now you are going to copy the entire folder unto the server:

$ cp -Rf * /usr/local/www/data/Your Username
$ cd /usr/local/www/data/Your Username

If you have copied the files correctly, you should be able to view your website at the following URL in Firefox:

http://IP_ADDRESS/Your Username/index.htm

If you have problems, please ask your teacher

Editing CSS

When you have finished with the above Tutorial, continue to edit the CSS using the resource from CSS Tutorial 1.

Homework:

Bring several images of yourself, your family, your school, and your future plans to class by the next lesson.

This is the end of Linux Tutorial 9.

Top

Copyright ©2007-2008 by Kevin Miller, Jr. All Rights Reserved.
Web site URI: http://ais.saigonnezumi.com
Validate me: XHTML 1.1 | CSS | Section 508 | Lynx | Contact Mr. Kevin