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

    PCmover - $15 Off with Coupon Code CJPH7Q

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

     

    Once you have completed the above, you’ll need to do a couple of quick tests to check that you’ve configured Apache correctly.  Firstly, create a standard HTML document with ‘Congratulations on a fine piece of configuration’ in between the <body tags> in the www folder, and call it index.html

    Now open your browser and type:

    http://localhost/index.html

    Your self-praise should be displayed.  In order to test SSI, create the following file in Notepad and save it as test.shtml:

    SSI Test Successful!

    <hr>

    <!--#include virtual="/index.html" -->

    <hr>

    Now type http://localhost/test.shtml in the address bar, and you should see a page with; ‘SSI Test Successful!’ at the top, followed by ‘Congratulations on a fine piece of configuration’ in- between two horizontal lines.  

    To test cgi; create the following in Notepad:

    @ECHO OFF

    ECHO.

    ECHO This is a batch file

    ECHO.

    PAUSE

    CLS

    EXIT

    Save it as test.bat in the cgi folder and in the browser address bar type;

    http://localhost/cgi-bin/test.bat

    This should execute the batch file, or at the very least give you an Open or Save dialogue box.  If you get a ‘Page cannot be displayed error’, you may need to install XP service pack 1, which can be found on the Microsoft Update site.

    Lastly, to test PHP, create the following file in Notepad and save it as test.php in the www directory:

    <?
      echo "It works!<br>n";
      phpinfo();
    ?>
       


    Now type http//localhost/test.php in the browser address bar.  You should see a page with ‘It Works!’ at the top followed by a lot of information regarding PHP.  That’s it!  You’re all set to begin PHP or script development.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

       

    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