Apache
  Home arrow Apache arrow Page 3 - Installing and Configuring Apache 2 on a Windows XP Machine
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
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? 
Google.com  
APACHE

Installing and Configuring Apache 2 on a Windows XP Machine
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 141
    2005-09-28


    Table of Contents:
  • Installing and Configuring Apache 2 on a Windows XP Machine
  • Getting Started
  • Configuring
  • Getting PHP Working
  • Configuring MySql

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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


    Installing and Configuring Apache 2 on a Windows XP Machine - Configuring
    ( Page 3 of 5 )

    To make creating a test website easier, you should reconfigure the DocumentRoot to a more accessible folder than the default of C:/Program Files/Apache Group/Apache2/htdocs.  Create a folder on your C drive and call it mysite or something similar.  Within this folder, you can create a sub-folder called documents or something similar.  Web site roots are normally set up so the the HTML files are kept in one folder, the JavaScript files in another, and so on. Stick an HTML file in the folder, just something basic that renders a sentence in the browser.

    Now go to the Start menu and select Edit the Apache httpd.conf Configuration File from the Apache program group.  This will open the main configuration file used by Apache.  You’ll need to scroll down to section two and find a directive called DocumentRoot.  Change the value to C:/folderyoujustcreated.  A little bit further down, you’ll see a <directory “C:/Program Files/Apache Group/Apache2/htdocs”> directive which will also need to be changed to whatever the DocumentRoot was set to. 

     

    Now save the file, restart the server and open a browser window.  Type http://localhost in the address bar again and the HTML file you just created should be displayed.  If instead, you see a directory style listing with Index of / at the top of the page, it means that you saved the HTML file with a HTM extension.  To correct this, open the httpd.conf file again and scroll down past the changes you just made to the DirectoryIndex directive.  Add index.htm to the end of the line and again save the file and restart the server.  Refresh the page and you will see the proper document.



     
     
    >>> More Apache Articles          >>> More By Dan Wellman
     

       

    APACHE ARTICLES

    - Creating a VAMP (Vista, Apache, MySQL, PHP) ...
    - 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...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek