Apache
  Home arrow Apache arrow 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 
 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

    Ziff Davis Enterprise Virtual Tradeshows: Hot Topics, Cutting Edge Technology, Real-time Interaction with IT Professionals. Learn more at ziffdavisvts.com

    Configuring and Using the Apache HTTP Web Server on a Windows XP PC
    (Page 1 of 4 )

    Author Dan Wellman explains what the Apache HTTP web server is and how it acts as a local server so you can test PHP code or CGI scripts you've written to see how they will look live. Wellman concentrates on using it on your desktop PC purely for testing code.

    What is the Apache HTTP Web Server exactly? 

    It is a piece of software that can basically create a virtual web server on your PC.  The program is open source, which means that as a developer, you can download the source files and experiment with changes to the code in the hope of modifying the program for the better.  It also means that the program has a General Public License, which to you and me, means for free!  The great thing about this (and most other open source software available these days), is that you don’t have to download the source code and try to install it from that.  All of us non-software developers out there can download a nicely packaged MSI or WIP file.  MSI, by the way, stands for MicroSoft Installation, and WIP for Windows Installer Package.  So we get a powerful program, for free, that we can install with minimum effort.  You can of course give a financial donation to the HTTP project, which, when you’re making software for nothing, you kind of rely on in order to keep going.  Feel free to, at your own discretion. 

    So what’s the point in having it? 

    When you connect to the Internet and type, for example www.hotmail.com, you’re telling your browser to locate the hotmail sub-domain on the .com top level domain.  Testing HTML pages you’ve written yourself and haven’t uploaded is a pretty standard operation; you open Internet Explorer (or whichever browser you happen to be using) and open the page; simple.  Most HTML editors have a ‘preview in browser’ button just for this. But how do you test PHP code? Or that little CGI script that you’ve written? The answer lies within Apache. It acts as a local server; you put any pages or scripts that you want to test in a specified directory, and in the address bar, type something like http://localhost/pagethatyouwanttotest.htm

    Your browser then requests the page from the server called localhost, or whatever you’ve configured it to, in the same way that it would if you were connected to the Internet.  Any script files referenced in the page are executed on the server and the results passed to the browser.  This is an excellent resource for anyone developing web applications in PHP, Perl or ASP, and lets you see pretty much exactly what any visitors to your site will see once it’s live.  You can also use the Apache HTTP Web Server to host your website on the Internet, as many people have chosen to do, but we won’t go into that here because it’s way past the scope of this article.  We’ll concentrate solely on using it on your desktop PC purely for testing code.

    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




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