its very simple

cd /usr/ports/www/turck-mmcache/
make
make install

then it will print out something like this

[mmcache]
zend_extension="/usr/local/lib/php/20020429/mmcache.so"
mmcache.shm_size="16" <--- i suggest you increase this # 16 for 512 ram 35 for 1gig and 50 for anything larger
mmcache.cache_dir="/tmp"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"
mmcache.keys="shm_and_disk"
mmcache.sessions="shm_and_disk"
mmcache.content="shm_and_disk"



copy and paste the above into
/usr/local/lib/php.ini
right below zend optimizer
useing vi do a /zend

then restart apache



you may want to move
/usr/local/share/examples/turck-mmcache/mmcache.php

to a valid htdocs folder so you can view what mmccache is doing


Eddie
Webrats.com