{"id":4180,"date":"2021-10-20T09:57:02","date_gmt":"2021-10-20T14:57:02","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=4180"},"modified":"2022-01-25T07:18:47","modified_gmt":"2022-01-25T13:18:47","slug":"how-to-install-memcached-on-directadmin","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/","title":{"rendered":"How to install Memcached on DirectAdmin?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/#install_memcached_libmemcached\" >Install memcached &amp; libmemcached<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/#install_memcached_php_extension\" >Install Memcached PHP Extension<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/#conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>Nowadays, DirectAdmin itself comes with all the required PHP extensions installed with the initial installation. But, to enhance the usability of the DirectAdmin control panel or improve the server&#8217;s performance, you might need specific more extensions such a Memcached, Redis, etc. Learn, How to install Memcached on DirectAdmin?<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>You might know that Memcached is used for mostly object caching along with caching of following elements,<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Database queries.<\/li><li>Sessions.<\/li><li>Web Pages.<\/li><li>API Caching.<\/li><li>Meta Data.<\/li><\/ul>\n\n\n\n<p>The advantage of using Memcached is to improve the work loading capacity of the server. Also, requests served through caching lead to tremendous performance increases.<\/p>\n\n\n\n<p><em>Let&#8217;s get started with Memcached installation on DirectAdmin server.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"install_memcached_libmemcached\"><\/span>Install memcached &amp; libmemcached <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Installation of Memcached<\/strong>.<\/p>\n\n\n\n<p>First, install the Memcached package, and its -dev package using the following commands,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>yum install memcached\nyum install memcached-devel<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Installation of  <strong>Memcached library<\/strong> (<strong>libmemcached<\/strong>)<\/strong>.<\/p>\n\n\n\n<p>Memcached requires the library to make it work properly. To install the Memcached library package and its -dev package, run the following commands,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>yum install libmemcached-devel\nyum install libmemcached<\/strong><\/code><\/pre>\n\n\n\n<p>You have successfully installed the Memcached on the directadmin server. To verify that run the following command,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>systemctl status memcached<\/strong><\/code><\/pre>\n\n\n\n<p>You must get the output of the above command something like&nbsp;<em>Memcached service status as ACTIVE<\/em>,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>&#91;root@host ~]# systemctl status memcached\n* memcached.service - Memcached\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/memcached.service; disabled; vendor preset: disabled)\n   Active: <span style=\"text-decoration: underline\">active (running)<\/span> since Mon 2021-10-11 03:37:19 EDT; 14min ago\n Main PID: 29231 (memcached)\n   CGroup: \/system.slice\/memcached.service\n           `-29231 \/usr\/bin\/memcached -u memcached -p 11211 -m 64 -c 1024\n\nOct 11 03:37:19 host.kh-demo.com systemd&#91;1]: Started Memcached.\n<\/strong><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"install_memcached_php_extension\"><\/span>Install Memcached PHP Extension<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>DirectAdmin has scripts with which you can easily install the required extension per PHP version-wise.<\/p>\n\n\n\n<p><em>Syntax of the command<\/em>,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\/usr\/local\/php<em>&lt;version&gt;<\/em>\/bin\/pecl install <em>&lt;extension name&gt;<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Let us install Memcached PHP Extension for installed php versions <em>(Example: 5.6, 7.2, 7.4)<\/em> using following command,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\/usr\/local\/php56\/bin\/pecl install memcached\n\/usr\/local\/php72\/bin\/pecl install memcached\n\/usr\/local\/php74\/bin\/pecl install memcached<\/strong><\/code><\/pre>\n\n\n\n<p>Nexa, add extension=memcached in to php.ini.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>echo \"extension=memcached\" &gt; \/usr\/local\/php56\/lib\/php.conf.d\/memcached.ini\necho \"extension=memcached\" &gt; \/usr\/local\/php72\/lib\/php.conf.d\/memcached.ini\necho \"extension=memcached\" &gt; \/usr\/local\/php74\/lib\/php.conf.d\/memcached.ini<\/strong><\/code><\/pre>\n\n\n\n<p>Finally, restart the php service.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>systemctl restart php-fpm56<\/strong>\n<strong>systemctl restart php-fpm72\nsystemctl restart php-fpm74<\/strong><\/code><\/pre>\n\n\n\n<p>You can verify the changes using following command,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\/usr\/local\/php&lt;version\/bin\/php -m | grep memcached\n<\/strong><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that we&#8217;ve gone over how to install Memcached on the DirectAdmin server. This article is an administrative tutorial, and you must need root-level access to perform described actions. If you can&#8217;t find the Memcached enabled of the server, then get in touch with the administrator.<\/p>\n\n\n\n<p>KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with requests should you need our assistance. You\u2019re not using KnownHost for the best webhosting experience? Well, why not? Check with&nbsp;<a href=\"https:\/\/www.knownhost.com\/contact\">our Sales team<\/a>&nbsp;to see what can&nbsp;<a href=\"https:\/\/www.knownhost.com\/\">KnownHost<\/a>&nbsp;do for you in improving your webhosting experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nowadays, DirectAdmin itself comes with all the required PHP extensions installed with the initial installation. But, to enhance the usability of the DirectAdmin control panel or improve the server&#8217;s performance, you might need specific more extensions such a Memcached, Redis, etc. Learn, How to install Memcached on DirectAdmin? You might know that Memcached is used [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[128,473,185],"class_list":["post-4180","post","type-post","status-publish","format-standard","hentry","category-directadmin","tag-directadmin","tag-extension","tag-memcached"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install Memcached on DirectAdmin? - KnownHost<\/title>\n<meta name=\"description\" content=\"Enable the object caching on the DirectAdmin server with Memcached. In this article learn, How to install Memcached on DirectAdmin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Memcached on DirectAdmin? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Enable the object caching on the DirectAdmin server with Memcached. In this article learn, How to install Memcached on DirectAdmin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-20T14:57:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-25T13:18:47+00:00\" \/>\n<meta name=\"author\" content=\"Somesh Z\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Somesh Z\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/\"},\"author\":{\"name\":\"Somesh Z\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"headline\":\"How to install Memcached on DirectAdmin?\",\"datePublished\":\"2021-10-20T14:57:02+00:00\",\"dateModified\":\"2022-01-25T13:18:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/\"},\"wordCount\":368,\"keywords\":[\"directadmin\",\"extension\",\"memcached\"],\"articleSection\":[\"DirectAdmin\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/\",\"name\":\"How to install Memcached on DirectAdmin? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-10-20T14:57:02+00:00\",\"dateModified\":\"2022-01-25T13:18:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"description\":\"Enable the object caching on the DirectAdmin server with Memcached. In this article learn, How to install Memcached on DirectAdmin.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-install-memcached-on-directadmin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Memcached on DirectAdmin?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\",\"name\":\"Somesh Z\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"caption\":\"Somesh Z\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Memcached on DirectAdmin? - KnownHost","description":"Enable the object caching on the DirectAdmin server with Memcached. In this article learn, How to install Memcached on DirectAdmin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/","og_locale":"en_US","og_type":"article","og_title":"How to install Memcached on DirectAdmin? - KnownHost","og_description":"Enable the object caching on the DirectAdmin server with Memcached. In this article learn, How to install Memcached on DirectAdmin.","og_url":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/","og_site_name":"KnownHost","article_published_time":"2021-10-20T14:57:02+00:00","article_modified_time":"2022-01-25T13:18:47+00:00","author":"Somesh Z","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Somesh Z","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/"},"author":{"name":"Somesh Z","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"headline":"How to install Memcached on DirectAdmin?","datePublished":"2021-10-20T14:57:02+00:00","dateModified":"2022-01-25T13:18:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/"},"wordCount":368,"keywords":["directadmin","extension","memcached"],"articleSection":["DirectAdmin"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/","url":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/","name":"How to install Memcached on DirectAdmin? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-10-20T14:57:02+00:00","dateModified":"2022-01-25T13:18:47+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"description":"Enable the object caching on the DirectAdmin server with Memcached. In this article learn, How to install Memcached on DirectAdmin.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-to-install-memcached-on-directadmin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to install Memcached on DirectAdmin?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1","name":"Somesh Z","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","caption":"Somesh Z"}}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/4180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=4180"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/4180\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=4180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=4180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=4180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}