{"id":3221,"date":"2016-07-12T19:35:18","date_gmt":"2016-07-12T19:35:18","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3221"},"modified":"2016-07-12T19:35:18","modified_gmt":"2016-07-12T19:35:18","slug":"install-xcache","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2016\/07\/12\/install-xcache\/","title":{"rendered":"Install xcache"},"content":{"rendered":"<p>CentOS 6<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# yum install php-xcache xcache-admin\n<\/pre>\n<p>Debian\/Ubuntu\/Linux Mint<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# apt-get install php5-xcache\n\n<\/pre>\n<p>Configure<\/p>\n<p>RHEL\/CentOS\/Fedora<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# nano \/etc\/php.d\/xcache.ini\n\n<\/pre>\n<p>Debian\/Ubuntu\/Linux Mint<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# nano \/etc\/php5\/conf.d\/xcache.ini\n\n<\/pre>\n<p>OR<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# nano \/etc\/php5\/mods-available\/xcache.ini\n<\/pre>\n<p>once you\u2019re done with configuration settings, restart your Apache web server.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n\n# \/etc\/init.d\/httpd restart\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n\n# \/etc\/init.d\/apache2 restart\n<\/pre>\n<p>Verify<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# php -v\n<\/pre>\n<p>Enabling XCache Admin Panel for PHP<\/p>\n<p>By default the admin panel is protected with http-auth and in disabled state. To set user\/password open the Xcache.ini file. But, first you have to create md5 password using following command. (Where typeyourpassword is your password).<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# echo -n &quot;typeyourpassword&quot; | md5sum\n\n<\/pre>\n<p>Sample Output<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nae9ac3f19ae3990b2c99701061c5d8c2\n\n<\/pre>\n<p>Now open Xcache.ini file add the generated md5 password. See the following example, add your own password md5 string.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n&#x5B;xcache.admin]\nxcache.admin.enable_auth = On\n; Configure this to use admin pages\nxcache.admin.user = &quot;mOo&quot;\n; xcache.admin.pass = md5($your_password)\nxcache.admin.pass = &quot;ae9ac3f19ae3990b2c99701061c5d8c2&quot;\n\n<\/pre>\n<p>The simplest way to do so is copying the whole directory xcache (admin was in older release) to your web root directory (i.e. \/var\/www\/html or \/var\/www).<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# cp -a \/usr\/share\/xcache\/ \/var\/www\/html\/\n\n<\/pre>\n<p>OR<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# cp -a \/usr\/share\/xcache\/htdocs \/var\/www\/xcache\n\n<\/pre>\n<p>OR<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncp -a \/usr\/share\/xcache\/admin\/ \/var\/www\/ (older release)\n\n<\/pre>\n<p>Now call it from your browser, a http-auth login prompt window will pop-up. Enter your user\/pass in, and it\u2019s done.<\/p>\n<p>http:\/\/localhost\/xcache OR http:\/\/localhost\/admin (older release)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 6 # yum install php-xcache xcache-admin Debian\/Ubuntu\/Linux Mint # apt-get install php5-xcache Configure RHEL\/CentOS\/Fedora # nano \/etc\/php.d\/xcache.ini Debian\/Ubuntu\/Linux Mint # nano \/etc\/php5\/conf.d\/xcache.ini OR # nano \/etc\/php5\/mods-available\/xcache.ini once you\u2019re done with configuration settings, restart your Apache web server. # \/etc\/init.d\/httpd restart # \/etc\/init.d\/apache2 restart Verify # php -v Enabling XCache Admin Panel for PHP By &#8230; <a title=\"Install xcache\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2016\/07\/12\/install-xcache\/\" aria-label=\"Read more about Install xcache\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,84],"tags":[],"class_list":["post-3221","post","type-post","status-publish","format-standard","hentry","category-apache","category-php"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3221"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3221\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}