Revision [83]
This is an old revision of HowtoSetupAPD made by ChrisBuechler on 2007-08-18 23:45:57.
HOWTO Setup APD
- fetch -q -o /tmp/apd.tgz http://www.pfsense.org/~billm/apd.tgz
- cd / && tar xvpzf /tmp/apd.tgz
- rehash
- vi /usr/local/lib/php.ini (disable xcache in HEAD, it doesn't play with apd)
magic_quotes_gpc = Off
max_execution_time = 99999999
max_input_time = 99999999
register_argc_argv = On
file_uploads = On
upload_tmp_dir = /tmp
upload_max_filesize = 100M
post_max_size = 100M
html_errors = Off
include_path = ".:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg"
;[xcache]
;xcache.size = 4M
;xcache.mmap_path = "/tmp/xcache"
;xcache.cacher = 1
;extension=xcache.so
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/apd.so
apd.dumpdir = /var/tmp/apd
RELENG_1
magic_quotes_gpc = Off
max_execution_time = 99999999
max_input_time = 99999999
register_argc_argv = On
file_uploads = On
upload_tmp_dir = /tmp
upload_max_filesize = 100M
post_max_size = 100M
html_errors = Off
include_path = ".:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg"
apc.enabled="1"
apc.shm_size="3"
extension=apc.so
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/apd.so
apd.dumpdir = /var/tmp/apd
- add "apd_set_pprof_trace();" to the beginning of the php file you want to trace (see http://wiki.cc/php/Apd for more info)
- pprofp -r /var/apd/pprof.pid.0