{"id":1933,"date":"2012-07-25T12:56:15","date_gmt":"2012-07-25T16:56:15","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1933"},"modified":"2013-03-20T08:38:22","modified_gmt":"2013-03-20T12:38:22","slug":"how-to-install-and-configure-apc-cache-on-a-cpanel-server","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/how-to-install-and-configure-apc-cache-on-a-cpanel-server","title":{"rendered":"How to install and configure APC cache on a cPanel server?"},"content":{"rendered":"<p style=\"text-align: center;\">For a plain Linux server, follow: <a href=\" https:\/\/linuxhostingsupport.net\/blog\/how-to-install-and-configure-apc-cache-on-a-centos-server\">How to install APC cache on a Linux server?<\/a><\/p>\n<p><strong>Installation of APC cache on a cPanel server<\/strong> is pretty easy. Follow the below steps to install APC cache on cPanel server:<\/p>\n<p><strong>1.<\/strong> SSH to the server and execute:<\/p>\n<blockquote>\n<pre># yum install pcre-devel<\/pre>\n<\/blockquote>\n<p><strong>2.<\/strong> Goto WHM &#8211;&gt; PHP Configuration Editor &#8211;&gt; Advanced Mode, change the\u00a0 &#8220;extension_dir&#8221; value from<\/p>\n<blockquote>\n<pre>\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20060613\r\nto\r\n\/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613<\/pre>\n<\/blockquote>\n<p><strong>3.<\/strong> Install APC cache from WHM.<\/p>\n<blockquote>\n<pre>WHM --&gt; Module Installers --&gt; click Manage next to \"PHP Pecl\".\r\nSearch APC and install it.<\/pre>\n<\/blockquote>\n<p><strong>4.<\/strong> Change PHP Handler to DSO. You can either do this from WHM OR via SSH:<\/p>\n<blockquote>\n<pre>WHM --&gt; Service Configuration --&gt; Apache Configuration --&gt;\r\nConfigure PHP and SuExec --&gt; PHP5 Handler\r\nOR\r\n# \/usr\/local\/cpanel\/bin\/rebuild_phpconf 5 0 dso 1<\/pre>\n<\/blockquote>\n<p>Once done, make sure apc.so file is present in the \/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613 directory. Sometimes it is created in the original directory and you have to create a symlink.<\/p>\n<blockquote>\n<pre># ln -s \/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20060613\/apc.so \\\r\n \/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613\/apc.so<\/pre>\n<\/blockquote>\n<p>Restart the Apache webserver and to confirm if APC is activated, execute:<\/p>\n<blockquote>\n<pre># php -i | grep apc<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>For a plain Linux server, follow: How to install APC cache on a Linux server?<br \/>\nInstallation of APC cache on a cPanel server is pretty easy. Follow the below steps to install APC cache on cPanel server:<br \/>\n1. SSH to the server and execute:<\/p>\n<p># yum install pcre-devel<\/p>\n<p>2. Goto WHM &#8211;&gt; PHP Configuration Editor &#8211;&gt; Advanced Mode, change the\u00a0 &#8220;extension_dir&#8221; value from<\/p>\n<p>\/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20060613<br \/>\nto<br \/>\n\/usr\/lib\/php\/extensions\/no-debug-non-zts-20060613<\/p>\n<p>3. Install APC cache from WHM.<\/p>\n<p>WHM &#8211;&gt; Module Installers &#8211;&gt; click Manage next to &#8220;PHP Pecl&#8221;.<br \/>\nSearch APC and install it.<\/p>\n<p>4. Change PHP Handler to DSO. You can either do this [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1414,1412,1413,1411],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1933"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1933"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1933\/revisions"}],"predecessor-version":[{"id":1937,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1933\/revisions\/1937"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}