{"id":132,"date":"2007-03-16T16:40:00","date_gmt":"2007-03-16T16:40:00","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=132"},"modified":"2007-03-16T16:40:00","modified_gmt":"2007-03-16T16:40:00","slug":"install-or-recompile-mmcache","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=132","title":{"rendered":"Install or recompile mmcache"},"content":{"rendered":"<p>This is old material as you should be using eAccelerator now. Install from source or best yet, RPM). This is for reference or for those who have not made the switch.<\/p>\n<h4>Instructions<\/h4>\n<p>Step 1. Compiling Turck MMCache<br \/>\n<textarea name=\"code\" class=\"xml\"><br \/>\n run &#8220;make clean&#8221; first if recompiling<br \/>\n export PHP_PREFIX=&#8221;\/usr&#8221;<br \/>\n $PHP_PREFIX\/bin\/phpize<br \/>\n .\/configure &#8211;enable-mmcache=shared &#8211;with-php-config=$PHP_PREFIX\/bin\/php-config<br \/>\n make<br \/>\n<\/textarea><\/p>\n<p>You must specify the real prefix where PHP is installed in the &#8220;export&#8221; command. It may<br \/>\nbe &#8220;\/usr&#8221; &#8220;\/usr\/local&#8221;, or something else.<\/p>\n<p>Step 2. Installing Turck MMCache<br \/>\n<textarea name=\"code\" class=\"xml\"><br \/>\nroot$ make install<br \/>\nInstalling shared extensions: \/usr\/lib\/php\/extensions\/no-debug-non-zts-20020429\/<br \/>\n# Need to copy it to the lib folder<br \/>\nroot$ cp mmcache.so \/usr\/lib\/php4\/mmcache.so<br \/>\n<\/textarea><\/p>\n<p>Step 3. Configuring Turck MMCache.<br \/>\nTurck MMCache can be installed both as Zend or PHP extension, so you need to edit your<br \/>\nphp.ini file (usually \/etc\/php.ini). To install as Zend extension:<\/p>\n<p><textarea name=\"code\" class=\"xml\"><br \/>\n zend_extension=&#8221;\/usr\/lib\/php4\/mmcache.so&#8221;<br \/>\n mmcache.shm_size=&#8221;16&#8243;<br \/>\n mmcache.cache_dir=&#8221;\/tmp\/mmcache&#8221;<br \/>\n mmcache.enable=&#8221;1&#8243;<br \/>\n mmcache.optimizer=&#8221;1&#8243;<br \/>\n mmcache.check_mtime=&#8221;1&#8243;<br \/>\n mmcache.debug=&#8221;0&#8243;<br \/>\n mmcache.filter=&#8221;&#8221;<br \/>\n mmcache.shm_max=&#8221;0&#8243;<br \/>\n mmcache.shm_ttl=&#8221;0&#8243;<br \/>\n mmcache.shm_prune_period=&#8221;0&#8243;<br \/>\n mmcache.shm_only=&#8221;0&#8243;<br \/>\n mmcache.compress=&#8221;1&#8243;<br \/>\n<\/textarea><\/p>\n<p>Step 4. Creating cache directory<br \/>\n<textarea name=\"code\" class=\"xml\"><br \/>\n mkdir \/tmp\/mmcache<br \/>\n chmod 0777 \/tmp\/mmcache<br \/>\n<\/textarea><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is old material as you should be using eAccelerator now. Install from source or best yet, RPM). This is for reference or for those who have not made the switch. Instructions Step 1. Compiling Turck MMCache run &#8220;make clean&#8221; first if recompiling export PHP_PREFIX=&#8221;\/usr&#8221; $PHP_PREFIX\/bin\/phpize .\/configure &#8211;enable-mmcache=shared &#8211;with-php-config=$PHP_PREFIX\/bin\/php-config make You must specify the real [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/132"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":0,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}