How To

How to Install and Configure Apache Webserver for Website Hosting

Contributor
By eHow Contributing Writer
(1 Ratings)

Apache Webserver is one of the most popular website hosting software programs available. This tool is robust, expandable, secure and able to handle complex needs. The software itself is open source, so it is constantly being improved by programmers around the world.

Difficulty: Challenging
Instructions
  1. Step 1

    Read the specifications, minimum system requirements and operating system information before you download the software. As a website hosting software, it is assumed that there are no other major software packages on your server, except for your operating system.

  2. Step 2

    Download the Apache webserver software and select the Apache modules you want to install by navigating to the "configuration file src" and then selecting the "configuration.tmpl." If you are an experienced user, you can comment out specific modules that you do not want. Use caution, as many modules relate back to security and operational settings.

  3. Step 3

    Configure Apache webserver to work with the operating system of your server by running the "configure" script as provided on the Apache website.

  4. Step 4

    Type "make" to compile Apache. This installs the standard configuration. For extra modules or functionality, review the information on the Apache website.

  5. Step 5

    Use the binary file called "httpd" in the "src" directory to begin installing the software. Apache should be compiled, configured and run from the same set of directories.

  6. Step 6

    Edit the "configuration" files for the server by creating a set of "directives." Default files have been created for you. Simply copy or rename the files by dropping the -dist. Read the comments related to each file carefully. A mistake here results in a non-functional or unsecured server.

  7. Step 7

    Review carefully and the edit the "httpd.conf" file to include the port number, user name and other basic information. Then edit the "srm.conf" file to create the root document tree and any special functions you require. Edit the "access.conf" file to create a structure for user roles and access management.

Tips & Warnings
  • Test your installation to ensure that you have properly secured the webserver before adding any websites.
  • Set the correct time on your server. This is an important part of the service you are providing and helps maintain the quality of the Internet for everyone.

Post a Comment

Post a Comment

Have you done this? Click here to let us know.

I Did This

Related Ads

Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow’s Internet Expert.

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

Demand Media
eHow_eHow Technology and Electronics