Installing Apache 2.2 PHP 5.2 MySQL 5 on Windows

Downloading & Installing

Apache:
http://httpd.apache.org/download.cgi#apache22

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.
http://windows.php.net/download/#php-5.2

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.

 

Source: http://my.opera.com/galoabk/blog/installing-apache-2-2-php-5-2-mysql-5-on-windows-32bit-or-x64

Leave a Reply

Your email address will not be published.