Monday, April 14, 2014

How to Install and Configure PHP 5 to Run with Apache on Windows

Many web developers want to run Apache and PHP on their own computer since it allows them to
easily test their scripts and programs before they put them "live" on the Internet. This article gives a
step by step guide on how you can install and configure PHP5 to work together with the Apache
HTTP Server on Windows. The procedure has been tested to work on both Windows XP and
Vista.
If you have not already installed Apache on your machine, check out one of the guides listed below.
This "How To" guide assumes that you have already completed installing Apache.

Steps to Setting Up PHP 5

1. Download PHP 5

2. Install PHP 5

3. Upgraders: Remove the Old PHP.INI File from Your Windows Directory

4. Configuring PHP

If invoking PHP from the command line causes a large HTML file with all the PHP configuration
information to be displayed, then your PHP set up is fine. The problem probably lies with your
Apache configuration. Make sure that you have restarted the Apache server after making
configuration changes. Verify that you have configured Apache correctly by looking over, again, the
instructions on this page and the steps given in How to Install and Configure Apache 1.x for
Windows (http://www.thesitewizard.com/archive/apache.shtml) (for Apache 1.x users) or How to
Install and Configure Apache 2 on Windows (http://www.thesitewizard.com/apache/install-apache-2-
windows.shtml) (for Apache 2.x users).

No comments:

Post a Comment