Installing Apache 2.2 PHP 5.2 MySQL 5 on Windows

Downloading & Installing


Download the apache installer  (MSI Installer)  and install it,  . Run it from your start menu.

Download the PHP 5.2.17 zip (VC6 x86 Thread Safe) and extract it.   I suggest C:\php5.2.17.

MySQL 5 – update later


Configuring Apache to use PHP

Go into httpd.conf. find the bunch of LoadModule lines and add this one.

LoadModule php5_module C:/php5.2.17/php5apache2_2.dll

So In my file it looks like this

LoadModule php5_module C:/php5.2.17/php5apache2_2.dll
PHPIniDir C:/php5.2.17/

Find the bunch of AddType lines and add this one
AddType application/x-httpd-php .php

 Configuring PHP 

go into C:\php5.2.17 and copy php-recommended.ini to php.ini

Find and edit the following lines;

doc_root = “C:\Apache2.2\htdocs”

extension_dir = “C:\php5.2.17\ext”

Restart Apache.



Leave a Reply

Your email address will not be published.