Step 02 - Apache

We begin with installing Apache 2.

  1. Installation
    You are greeted with the Welcome to the installation wizard... screen.
    Press NEXT.
  2. Accept the License Agreement.
    Press NEXT.
  3. Read the Read Me.
    Press Next.
  4. Server Information
    Network Domain: localhost
    Server Name: localhost
    Administrator's E-mail address: your@email.com
    Choose : for All Users, on Port 80, as a Service -- Recommended.
    Press Next.
  5. Setup Type
    Typical
    Press Next.
  6. Destination Folder
    Change it to E:\Inet\
    Press Next.
  7. Ready to Install the Program
    Press Install.
  8. Installation Wizard Completed
    Press Finish.

After the installation is complete you should see the Apache Monitor icon on your system tray next to the clock. The green arrow means Apache is up and running. You can control the operation of Apache through there. Click on the icon to START-STOP-RESTART Apache.

Click on this link : localhost.
Do you see the Apache page? - See screenshot -
We are there, but not quite, we are going to have to fine tune Apache to suit our needs a little better.

We have Apache setup to serve web pages from our computer, but we will give it our own location to serve the files.

  • Open E:\Inet. If you have a look you will see that Apache has installed itself in a Apache2 folder. That is how Apache works no matter where you install it.
  • Make a new folder under Inet, name it WWW

We can now begin the first step of configuring Apache2. This one is to tell it that the WWW directory is where all our pages are going to be.

  • Configuration
    Open httpd.conf located in E:\Inet\Apache2\conf\ with Notepad or any text editor. You can also open it under the Apache program group in the Start menu.
  • Do a search for DocumentRoot. It should be exactly on line 228, but don't bet on it as it just might be different on your computer. See the screenshot if it matches with what you find - See screenshot -
  • Change the line where it says "E:/Inet/Apache2/htdocs" to "E:/Inet/WWW"
  • Further down about 25 lines on line 253 (or so) you should see <Directory "E:/Inet/Apache2/htdocs">. Change that to <Directory "E:/Inet/WWW">

You have Apache fully configured to serve your web pages from your WWW directory. Just put all your files under this directory so it can be accessed from the outside world.

We have Apache up and running, but not configured for PHP. We will get to that once we install PHP. So keep your pants on for the time being.

Ready for another cup of coffee?

Return to Step 1 - Proceed to Step 3