Install APD via PEAR

# pear install apd
% mkdir /tmp/traces
Then add the following to your php.ini file:

zend_extension=/absolute/path/to/apd.so
apd.dumpdir=/tmp/traces