Apache
  Home arrow Apache arrow Page 2 - Configuring and Using the Apache HTTP ...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
APACHE

Configuring and Using the Apache HTTP Web Server on a Windows XP PC
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 107
    2004-05-24

    Table of Contents:
  • Configuring and Using the Apache HTTP Web Server on a Windows XP PC
  • Get the Software and Set up a Directory Structure
  • Opening the File and Making Modifications
  • Testing

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Configuring and Using the Apache HTTP Web Server on a Windows XP PC - Get the Software and Set up a Directory Structure
    (Page 2 of 4 )

    To get the software, go to the following page:

    http://httpd.apache.org/download.cgi#verify

    The site will select a mirror for you. Now scroll down to the first section past the mirror section, and click:

    Win32 Binary (MSI Installer): apache_2.0.49-win32-x86-no_ssl.msi

    Answer the prompts in your usual manner. The installation file is 5.81Mb, so go and make a cup of tea or something, and when you come back, it should be done. To install the server; run the executable you’ve just downloaded and accept the terms.  Enter localhost in the domain and servername text fields, and just enter yourname@localhost in the bottom one.  Leave the target directory and hit install.  Once the program has installed successfully, you’ll see an Apache icon with a green play symbol on it in your system tray (right there, next to the clock).  This means the server is running.  To stop or restart the server (to pick up changes made in the configuration file for example), just left-click this icon and select Apache2 / Stop or Restart.  When the server has stopped, the same icon, but with a red stop symbol on it will be in your system tray.  You may at this point also wish to install PHP.  If so, go to www.php.net and download the exe file and the zip file.  Run the exe file; you can leave most of the defaults as they are, but change the target directory from C:php to C:program filesphp. 

    And it’s as easy as that?  Not quite; you could of course, leave the Apache configuration file exactly as it is and host all of your test pages and scripts out of the default folder, which happens to be C:Program FilesApache GroupApache2htdocs.  Lovely. 

    Ideally though, you want to set up a directory structure that is easy to remember the file path of, and at least vaguely reflects the directory structure that is used on web servers.  Additionally, you need to at least make some minor changes to the configuration file in order to enable SSI includes and CGI, which of course, you want to do (don’t you?)

    But first a little groundwork; in the My Documents folder, create a folder called My Website, and within that, create a folder called localhost. Now create two folders in the localhost folder; one called www and one called cgi. That’s your directory structure set up.  Now, what happens if you make some changes in the configuration file only to find that the server doesn’t function correctly? Or worse still, the server won't even start?  Fortunately, this release of Apache has a backup configuration file called httpd.default (you’ll notice that all of the files in the conf folder are backed up in this way.) So if you want to return to the original configuration file, just copy and paste the entire contents of the .default file into the httpd file, which is the main configuration file. This is a lot quicker, easier and less frustrating in general than uninstalling and then reinstalling the program repeatedly, until you get it right. Both of these files are kept in the C:Program FilesApache GroupApache2conf folder, but another great thing about Apache is that you don’t have to browse through your filing system to find the main configuration file, you just launch it using the ‘Edit the Apache httpd.conf Configuration file’ shortcut, which can be found under:

    Start / Apache HTTP Server 2.0.49 / Configure Apache Server.

    More Apache Articles
    More By Dan Wellman


     

       

    APACHE ARTICLES

    - Putting Apache in Jail
    - Containing Intrusions in Apache
    - Server Limits for Apache Security
    - Setting Permissions in Apache
    - Installing Apache
    - Apache Installation and Configuration
    - Apache Tapestry and Custom Components: DateI...
    - Tapestry and AJAX: Autocompleter and InlineE...
    - PropertySelection and IPropertySelectionMode...
    - The DatePicker and Shell Components of Apach...
    - Apache Tapestry: ASO and More Components
    - Apache Tapestry and DirectLink, IoC and DI
    - Making a CelebrityCollector with Apache Tape...
    - Apache Tapestry and Listener Methods, Condit...
    - The Properties of Tapestry Pages

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway