View Full Version : request a MMCache Install How to
neorder
05-04-2004, 06:06 AM
i searched this forum but found nothing much about MMCache, since MMCache can imporve php performation by 1-10 times, why not install it?
http://turck-mmcache.sourceforge.net/
Since version 2.3.15, Turck MMCache is compatible with Zend Optimizer's loader. Zend Optimizer must be installed after Turck MMCache in php.ini. If you don't use scripts encoded with Zend Encoder then we do not recommend you install Zend Optimizer with Turck MMCache.
so, my first step is how do i uninstall zend?
To install Zend, you need to
cd /usr/local/directadmin/custumapache
./build zend
Then just answer the quuestions. To install MMCache, you need to download the file and unpack the archive. Prior to building you need to run phpize to build the configure script then run configure. See the "Quick install" section of the readme. Then to install, the changes to my php.ini looks like this:
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so"
mmcache.shm_size="16"
mmcache.cache_dir="/tmp/mmcache"
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"
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.5.1
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.5.1
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
neorder
05-04-2004, 07:21 PM
it says
Zend Optimizer must be installed after Turck MMCache in php.ini.
"after", so i suppose i should uninstall zend first? then installl MMCache, then install Zend again, am i right?
but how to uninstall zend? :(
No, as you can see in my php.ini that mmcache.so is loaded after zend. The facet that is is on a higher line, it will get installed(loaded) first.
neorder
05-05-2004, 09:22 AM
thanks, i got it worked and did notice a speed up. :)
a few thing to note:
the first step we should run
export PHP_PREFIX="/usr/local"
and run
make install
only one line showed up
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
and in php.ini, the location of mmcache.so is at
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so"
at last, don't forget to restart httpd. hope it helps.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.