1 edit apache2/conf/httpd.conf.
PHPIniDir=[dir]
2. copy php-5.x-src/php.ini.development to your PHPIniDir.
3. rename php.ini.development to php.ini and edit to omit E_NOTICE errors(otherwise there can be undefined index errors raised as response when the code triggers certain warning). find error_reporting
error_reporting = E_ALL & ~E_NOTICE
4. restart apache2
apachectl restart