Monday, August 30, 2010

Installing PHP

You can download the version used in this tutorial in the following address...


Php – php-5.3.3 - http://windows.php.net/download/ select the thread safe version (VC9 x86 Thread Safe ) windows installer


PHP 5

Download & Unpack

Download and install PHP from above mentioned link, you should grab the newest 5.x.x Windows Binaries zip package that will work on apache.

1. Unzip php. In my case, I unzipped to:
C:\php\

2. Rename C:\php\php.ini-development to php.ini

3. Copy the ini file and php5ts.dll to C:\windows and C:\windows\system32

4. Add these lines to apache conf file

LoadModule php5_module "C:/php/php5apache2_2.dll"

AddType application/x-httpd-php .php

PHPIniDir "C:/php"

DirectoryIndex index.php index.html default.html

5. Restart apache

6. Test by executing phpinfo

No comments:

Post a Comment