BrainDump
  Home arrow BrainDump arrow Using the Web Test Environment
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web 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? 
BRAINDUMP

Using the Web Test Environment
By: Nilpo/Developer Shed Staff Writer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-05-08

    Table of Contents:
  • Using the Web Test Environment
  • Executing CGI scripts
  • PHP switching
  • Allowing external access

  • 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


    Using the Web Test Environment


    (Page 1 of 4 )

    Once you have your Apache web server installed you’ll want to configure it as closely as possible to your actual web server so that you have a realistic test environment. This will allow you to create and test web pages and applications locally, in real-time, and upload them later.

    At this point XAMPP will have installed virtually everything you need.  You can further customize this any way you like.  Don’t use MySQL?  Install the database system of your choice.  Need to add support for Python?  That’s no problem either.

    XAMPP installs a lot of useful components.  You should check their web site to see what’s included in the version you installed.  The latest version at the time of this writing even includes Zend Optimizer.  They are constantly adding components to make it as useful as possible.

    It should be fairly obvious at this point that your domain is not going to be pointing to this server.  Hopefully you’re accustomed to using relative file paths.  If not, or for any other direct link, you’ll need to substitute http://localhost for your own http://www.yourdomain.com.

    Alternatively, you can leave everything the same and add the following entry to your hosts file. (C:WindowsSystem32driversetchosts)

    127.0.0.1 www.yourdomain.com

    This will redirect all requests for yourdomain.com to 127.0.0.1 which is the address of your local network adapter.

    The term ‘localhost’ is actually the hostname assigned to 127.0.0.1.  They can be used interchangeably.

    This method is by far the best for cross-compatibility.  You won’t need to change any of the references in your code when you move them between hosts.  The drawback is that you will not be able to access the “live” site at yourdomain.com because your browser will always redirect them locally.

    More BrainDump Articles
    More By Nilpo/Developer Shed Staff Writer


       · You've learned how to create an Apache test environment in Windows. Now learn how...
     

    BRAINDUMP ARTICLES

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





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