Posted on Leave a comment

Installing Apache and PHP

Download Apache from ApacheLounge

http://www.apachelounge.com/download/
httpd-2.2.24-win32.zip
Install in C:/Apache/
Select CGI mode during install

Apache running PHP as CGI (vs module)
httpd.conf

<Directory “c:/php”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

AddType application/x-httpd-php .php
ScriptAlias /php/ “c:/php/”
Action application/x-httpd-php “/php/php-cgi.exe”

DirectoryIndex index.php index.html index.htm default.htm

http://php.net/downloads.php

PHP 5.3.26
http://windows.php.net/download/#php-5.3
VC9 x86 Non Thread Safe (for IIS) – “Installer”
php-5.3.26-nts-Win32-VC9-x86.msi
VC9 x86 Thread Safe (for Apache as CGI)
php-5.3.26-Win32-VC9-x86.msi
Install in C:/PHP/

PHP.INI

[Zend]
zend_extension=”c:\php\ext\php_xdebug.dll”
xdebug.remote_enable = on
[xdebug]
zend_extension=”c:\php\ext\php_xdebug.dll”
xdebug.remote_enable=On
xdebug.profiler_enable=0ff

include_path = “.;c:/inet/htdocs/Wwb/aShare”

http://xdebug.org/download.php

XDebug 2.1.1 PHP 5.3 VC9 TS (32 bit) (for Apache)
XDebug 2.1.1 PHP 5.3 VC9 (32 bit) (for IIS)