advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Partners & Affiliates
advertisement
advertisement
advertisement
Average Rating: 4.5/5 | Rate this item | 6 users have rated this item.
Email this articleEmail this article
 
WAMP Up Your Open Source Development on Windows for Free
Apache, MySQL, and PHP, three quarters of the LAMP open source platform that includes Linux, have made serious progress in Windows compatibility. This short guide demonstrates how to install this power trio on Windows for a WAMP platform. 

advertisement
first got interested in running PHP using the Windows operating system during a business trip to Toronto. I was staying with my cousin who, like many people, uses Windows exclusively. My dilemma: I wanted to test out some PHP code but didn't want to upload it to my FreeBSD box until I knew it was working. This article explains how to set up Apache, PHP, and MySQL on a Windows desktop to create a testing environment for PHP code.

A look into the Windows world revealed that PHP, Apache, and MySQL have made some serious progress in Windows compatibility. The MySQL, PHP, and Apache teams have done an excellent job of producing a Windows installer for each of these applications. What's more, the PHP team has branched out to make PHP compatible with a number of servers, including Microsoft PWS, IIS, Apache, and Xitami.

Both Apache and PHP work well with a number of databases. I choose to use MySQL (foremost) because it is free and (second) because it is stable. The combination of Apache, MySQL, and PHP empowers a developer to set up a robust, database-driven Web site testing area for nothing more than the cost of a computer. To ease this install, you can download the Windows Apache, PHP and MySQL files.

Installing the Trio
Part of the trick to installing this power trio is to do so in the correct order:

  1. MySQL
  2. Apache
  3. PHP

MySQL
Decide where you want to insert the MySQL directories. The default location is C:\mysql, which is perfectly fine. Unless you have a specific reason for installing them to different locations, install each of these three applications to its default directory.

Apache
Windows 95/98 users should use Apache 1.3.31. All other Windows users should be fine with Apache 2.0.49. If you have IIS or another server installed already, you don't need to uninstall it. Your other server(s), however, will have to be shut down while Apache is running. Simply choose where you want to install Apache. I recommend C:\apache2. When prompted, set your domain name to localdomain and your host address to localhost (see Figure 1).

Figure 1: Configuring for localdomain and localhost with Apache 2
PHP
As you install PHP, you will be prompted to choose a server with which to work. In this case, choose Apache (see Figure 2).

Figure 2: Choose Apache as the Server Type

  1. Navigate to the folder where you installed PHP (the default is C:\PHP\).
  2. Copy the file php4ts.dll to your system directory (e.g., winnt/system32 or windows/system).
  3. Navigate to C:\PHP\BACKUP (or wherever you installed PHP) and copy the file php.ini or php.ini-dist to C:\windows for Windows 95/98 users or to C:\winnt or C:\winnt40 for Windows 2000/NT/XP users.
  4. After you have copied the php.ini-dist file, rename it to php.ini. The php.ini file is integral to manipulating the PHP language. To extend the capabilities of the default PHP installation, you must edit the php.ini file.

Almost there… now restart your machine to put the Apache options into your start menu.

  Next Page: Configuring Apache
Page 1: IntroductionPage 3: Testing Time
Page 2: Configuring Apache 
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: BitLocker Encryption on Windows Server 2008
Go Parallel Article: Intel Thread Checker, Meet 20 Million LOC
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
Internet.com eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES