Home arrow Apache arrow Page 3 - Installing PHP under Windows

Installing PHP under Windows

Not a Linux fan? Looking for a hassle-free way of setting up a PHP environment on your Windows box? Read as Matthew guides us through the process of installing Apache, MySQL and PHP on a Windows based machine, otherwise known as WAMP.

Author Info:
By: Matthew Phillips
Rating: 5 stars5 stars5 stars5 stars5 stars / 271
October 22, 2003
  1. · Installing PHP under Windows
  2. · What is it?
  3. · Installation - Apache
  4. · Installation Cont'd - MySQL
  5. · Installation Cont'd - PHP
  6. · Testing It All

print this article

Installing PHP under Windows - Installation - Apache
(Page 3 of 6 )

Download Appropriate Files

  • Get the latest version of the Apache HTTP Server from http://httpd.apache.org/.  Make sure you get the Win32 Binary (MSI Installer) version
  • Get the latest version of MySQL, with installer, from www.mysql.com
  • Get the latest version of PHP from www.php.net.  Make sure you get the ZIP file with server API included

Install Apache Web Server

Run the Apache installer, and follow all on screen instructions. As you are setting this up for development and testing, the Network Domain and Server Name will both be ‘localhost’ (No quote marks). For the contact address, enter any email address you want; it’s not really important on a development/test server. Make sure Apache is installed as a service.

Test Apache Web Server

Open your web browser, and navigate to the address ’localhost’ (or http://localhost/). You should see a lovely page telling you Apache has been set up and is working correctly, but no pages have yet been added. If you’d like to at this stage, you may add any html pages you want. If you installed Apache with the default paths, go to the directory ‘C:\Program Files\Apache Group\Apache2\htdocs’; this is where any pages you want to make available are kept. Feel free to delete all the pages that start with index and add your own index.html file. index.html will be the first page you see when you go to http://localhost/, try it out, add your own! Congratulations your web server is up and running!

blog comments powered by Disqus

- Programmatically Manipulating Microsoft Exce...
- Installing PHP under Windows
- Compressing Web Content with mod_gzip and mo...
- Compressing Web Output Using mod_deflate and...
- Setting Up Apache 2.0.45 to Parse PHP Pages
- Custom Error 404 Documents with PHP
- Using Apache and PHP on Mac OS X
- ASP: Active Sessions, Active Logins and Tota...
- Working With Oracle on Windows: Part 1
- The Quick-n-Dirty Guide to Setting Up Apache...
- Installing Apache With SSL: The Complete Gui...
- 7 Powerful .htaccess Customization Tips
- Trap And Get Notified: A Practical Solution ...
- One Way To Use Server Side Includes
- Using ForceType For Nicer Page URLs

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials