{"id":731,"date":"2009-12-07T05:15:16","date_gmt":"2009-12-07T05:15:16","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=731"},"modified":"2014-11-21T06:44:46","modified_gmt":"2014-11-21T06:44:46","slug":"how-to-install-install-eaccelerator","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/how-to-install-install-eaccelerator\/","title":{"rendered":"How to install install Eaccelerator?"},"content":{"rendered":"<p>To install Eaccelerator manually refer following steps one by one carefully.<\/p>\n<p>1. First you need to login into shell as root user<br \/>\n2. Now we\u2019ll make the eaccelerator directory:<\/p>\n<p><span style=\"color: #800000;\">root@gunjan[]#cd ~<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#mkdir \/eaccelerator\/<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#cd \/eaccelerator\/<\/span><\/p>\n<p>2. Now download the source file<\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#wget http:\/\/heanet.dl.sourceforge.net\/sourceforge\/eaccelerator\/eaccelerator-0.9.4-rc1.tar.bz2<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#bzip2 -d eaccelerator-0.9.4-rc1.tar.bz2<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#tar xvf eaccelerator-0.9.4-rc1.tar<\/span><\/p>\n<p>3. Now install Eaccelerator:<\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#cd eaccelerator-0.9.4-rc1\/<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#export PHP_PREFIX=\u201d\/usr\u201d<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#$PHP_PREFIX\/bin\/phpize<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#.\/configure \u2013enable-eaccelerator=shared \u2013with-php-config=$PHP_PREFIX\/bin\/php-config<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#make<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#make install<\/span><\/p>\n<p>4. Now basically eaccelerator installed, now we need to edit the php.ini files to<br \/>\ninclude Eaccelerator extension.<\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#php -i | grep php.ini<br \/>\nConfiguration File (php.ini) Path =&gt; \/usr\/local\/lib<br \/>\nLoaded Configuration File =&gt; \/usr\/local\/lib\/php.ini<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#pico \/usr\/local\/lib\/php.ini<\/span><\/p>\n<p>copy and paste following lines php.ini carefully<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nextension=\u201deaccelerator.so\u201d<br \/>\neaccelerator.shm_size=\u201d16?<br \/>\neaccelerator.cache_dir=\u201d\/tmp\/eaccelerator\u201d<br \/>\neaccelerator.enable=\u201d1?<br \/>\neaccelerator.optimizer=\u201d1?<br \/>\neaccelerator.check_mtime=\u201d1?<br \/>\neaccelerator.debug=\u201d0?<br \/>\neaccelerator.filter=\u201d&#8221;<br \/>\neaccelerator.shm_max=\u201d0?<br \/>\neaccelerator.shm_ttl=\u201d0?<br \/>\neaccelerator.shm_prune_period=\u201d0?<br \/>\neaccelerator.shm_only=\u201d0?<br \/>\neaccelerator.compress=\u201d1?<br \/>\neaccelerator.compress_level=\u201d9?<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>For a Zend extension install server (only if you have Zend installed on your server, or<br \/>\nif you\u2019re going to install it)<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nzend_extension=\u201d\/usr\/lib\/php4\/eaccelerator.so\u201d<br \/>\neaccelerator.shm_size=\u201d16?<br \/>\neaccelerator.cache_dir=\u201d\/tmp\/eaccelerator\u201d<br \/>\neaccelerator.enable=\u201d1?<br \/>\neaccelerator.optimizer=\u201d1?<br \/>\neaccelerator.check_mtime=\u201d1?<br \/>\neaccelerator.debug=\u201d0?<br \/>\neaccelerator.filter=\u201d&#8221;<br \/>\neaccelerator.shm_max=\u201d0?<br \/>\neaccelerator.shm_ttl=\u201d0?<br \/>\neaccelerator.shm_prune_period=\u201d0?<br \/>\neaccelerator.shm_only=\u201d0?<br \/>\neaccelerator.compress=\u201d1?<br \/>\neaccelerator.compress_level=\u201d9?<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>5. Now you need to make the cache directory on your server, where the cache files will be<br \/>\nstored for eaccelerator<br \/>\nr<span style=\"color: #800000;\">oot@gunjan[]#cd ~<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#mkdir \/tmp\/eaccelerator\/<\/span><\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#chmod 0777 \/tmp\/eaccelerator\/<\/span><\/p>\n<p>6. Now restart Apache so that Eaccelerator will start working:<\/p>\n<p><span style=\"color: #800000;\">service httpd restart<\/span><\/p>\n<p>Now check eAccelerator by using following command<\/p>\n<p><span style=\"color: #800000;\">root@gunjan[~]#php -v<\/span><br \/>\nPHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Nov 20 2009 14:28:34)<br \/>\nCopyright (c) 1997-2009 The PHP Group<br \/>\nZend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies<br \/>\n<strong>with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator<\/strong><br \/>\nwith the ionCube PHP Loader v3.3.7, Copyright (c) 2002-2009, by ionCube Ltd., and<br \/>\nwith SourceGuardian v8.0, Copyright (c) 2000-2009, by Inovica Ltd.<br \/>\nwith Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies<br \/>\nwith Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH<\/p>\n<p>You done it enjoy \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>To install Eaccelerator manually refer following steps one by one carefully. 1. First you need to login into shell as root user 2. Now we\u2019ll <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/how-to-install-install-eaccelerator\/\" title=\"How to install install Eaccelerator?\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-731","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/731"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=731"}],"version-history":[{"count":12,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/731\/revisions"}],"predecessor-version":[{"id":3745,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/731\/revisions\/3745"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}