SunQuest
 
       BrainDump
  Home arrow BrainDump arrow Using the Web Test Environment
Iron Speed
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    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

    - Codes and Packages in Microsoft Project 2007
    - Windows 7: Rumors and Demos
    - XP SP3 Why Me?
    - Breaking Up Your Work in Microsoft Project
    - Breaking Work into Task-Sized Chunks
    - Putting Microsoft`s Worldwide Telescope Unde...
    - Handling Multiple Contracts with Indigo
    - Cleaning Out Your Data in XP
    - Multiple Service Contracts and Indigo
    - Cleaning Out Your Programs in XP
    - Handling Metadata with Indigo
    - Building Blocks for a WCF Service Web Site
    - Help! I Need Some Remote Assistance
    - Using Service Templates with Indigo
    - Windows XP Tips for Task Manager





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