Setup PHP+Mysql+Apache

1. copy file “php.ini-development” as “php.ini” in the php folder
# need to add the “c:\php” to system %path%
# and the php.ini need to set the “extension_dir” value
# un-comment “;extension=php_mysql.dll” to support Mysql (need to add Mysql/lib to the system Path)
# set date.timezone = UTC

2. add the following config to httpd.conf
Windows:

LoadModule php5_module "c:/php/php5apache2_2.dll"
DirectoryIndex index.html index.php
PHPIniDir "c:/php"
AddType application/x-httpd-php .php

Linux/Mac:

LoadModule php5_module modules/libphp5.so
DirectoryIndex index.php
AddHandler php5-script .php
AddType text/html .php

3. new php file to test it: index.php

<?php
phpinfo();
?>