{"id":300,"date":"2015-07-01T02:30:18","date_gmt":"2015-07-01T02:30:18","guid":{"rendered":"https:\/\/www.fastcomet.com\/blog\/?p=300"},"modified":"2022-06-10T07:28:25","modified_gmt":"2022-06-10T07:28:25","slug":"configure-phpfox-with-memcached","status":"publish","type":"post","link":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached","title":{"rendered":"How to Configure PHPFox with Memcached"},"content":{"rendered":"\n<p class=\"has-drop-cap\">For those not aware, <a href=\"http:\/\/www.phpfox.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">PHPFox<\/a> is an application that will help you build your own social network. You can have hundreds or thousands of people on your community, interacting at the same time.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>However, when your social networking website grows big, this may slow it down. The resource consumption of your website will grow, the number of requests executing on the server will multiply and this will slow your website down. Of course, this is something that you need to think about, as if your website becomes slow, it will not attract new members and the existing ones may decide to go away.<\/p>\n\n\n\n<p>One of the ways to speed up your PHPFox website is to enable Memcached on it. This greatly speeds up the performance of your website, serving requests to your website directly from the Memcached cache. The service is memory consuming, but we offer it to all our clients on E-Commerce Geek plans. We suggest reviewing our <a href=\"https:\/\/www.fastcomet.com\/phpfox-hosting\">PHPFox Hosting plans<\/a>, as well as the compare page, so you can get much more detailed information on our plans and what we can do for your website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Memcached?<\/h2>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"http:\/\/memcached.org\/\" target=\"_blank\">Memcached<\/a> is an object caching system, which is used to speed up the dynamic content of web applications. It is an in-memory caching and it stores the result from database calls, API calls or the rendering of pages in the memory on your server for quicker loading the next time there is a request to your website.<\/p>\n\n\n\n<p>The use of Memcached can significantly improve the performance of your website, but it is also a memory consuming cache engine. You need to consider that before you attempt using it on your PHPFox installation.<\/p>\n\n\n\n<p>Note that we offer few hosting plans that are suitable for Memcached and you will be able to use it for your project. If you are interested in a shared hosting service, you can consider our <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/my.fastcomet.com\/order\/ssdcloud\/\" target=\"_blank\">E-Commerce<\/a> plan, which will allow you to use Memcached. If you are a more advanced user and you need a <a href=\"https:\/\/www.fastcomet.com\/phpfox-vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Cloud VPS<\/a> or <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.fastcomet.com\/dedicated-servers\" target=\"_blank\">Dedicated Server<\/a> plan, we can offer that as well. The service is optimized for best PHPFox performance, but if you would like to use Memcached, you can contact our technical support team so they can configure it on the server for you.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to enable Memcached in PHPFox<\/h2>\n\n\n\n<p>To enable Memcached on your website, you will simply have to edit the PHPFox configuration file. Our guide will provide the steps on how to locate it and then access it for editing.<\/p>\n\n\n\n<p>There are two things that you need to change in the configuration file, so you can start using the Memcached service for your project. When you access the file, locate the following line of code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$_CONF&#91;'core.cache_storage'] = 'file';<\/code><\/pre>\n\n\n\n<p>and replace it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$_CONF&#91;'core.cache_storage'] = 'memcache';<\/code><\/pre>\n\n\n\n<p>When you change that, Memcached will be set as a caching engine for your website, but you need to tell your PHPFox installation how to connect to it. Look for the following line of code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$_CONF&#91;'core.memcache_hosts'] = array();<\/code><\/pre>\n\n\n\n<p>and change it with:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>$_CONF['core.memcache_hosts'] = array(<\/code> <code>array(<\/code> <code>'host' =&gt; '127.0.0.1',<\/code> <code>'port' =&gt; '11211'<\/code> <code>)<\/code> <code>);<\/code><\/pre>\n\n\n\n<p>The important thing to consider in the code above is the <strong>host<\/strong> and <strong>port<\/strong> values. The <strong>host<\/strong> value is telling your PHPFox installation how to connect to the Memcached service. If it is installed on the same server, it will be the same value as the one we used &#8211; 127.0.0.1. However, if you have a separate Memcached server, you will have to tell your application how to connect to it. The <strong>port<\/strong> value is the actual port, on which Memcached is listening. The default port number is 11211, but this may differ, depending on the way you have set the caching system on your server.<\/p>\n\n\n\n<p>As always, if you need assistance with the configuration in question, our technical support team will gladly configure your website. You can simply open a ticket via your <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/my.fastcomet.com\/clientarea.php\" target=\"_blank\">Client Area<\/a>. If you are not an existing client, you can consider our <a href=\"https:\/\/www.fastcomet.com\/phpfox-hosting\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">PHPFox Hosting<\/a> plans for best performance and security for your website!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those not aware, PHPFox is an application that will help you build your own social network. You can have hundreds or thousands of people on your community, interacting at the same time.<\/p>\n","protected":false},"author":6,"featured_media":611,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[142,66,15,143],"class_list":["post-300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-optimization","tag-memcached","tag-optimization","tag-performance","tag-phpfox"],"featured_image_src":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/07\/phpFox-and-memcached.jpg","author_info":{"display_name":"Dimitar","author_link":"https:\/\/www.fastcomet.com\/blog\/author\/daniel"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Configure PHPFox with Memcached | FastComet<\/title>\n<meta name=\"description\" content=\"Need to speed up your PHPFox application? \u27a4 Let&#039;s do it - learn how to setup Memcached caching. Take a look now \u261b FastComet \u261a step-by-step guide.\" \/>\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.fastcomet.com\/blog\/configure-phpfox-with-memcached\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure PHPFox with Memcached | FastComet\" \/>\n<meta property=\"og:description\" content=\"Need to speed up your PHPFox application? \u27a4 Let&#039;s do it - learn how to setup Memcached caching. Take a look now \u261b FastComet \u261a step-by-step guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached\" \/>\n<meta property=\"og:site_name\" content=\"FastComet Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-01T02:30:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-10T07:28:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/07\/phpFox-and-memcached.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"620\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dimitar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dimitar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Configure PHPFox with Memcached | FastComet","description":"Need to speed up your PHPFox application? \u27a4 Let's do it - learn how to setup Memcached caching. Take a look now \u261b FastComet \u261a step-by-step guide.","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.fastcomet.com\/blog\/configure-phpfox-with-memcached","og_locale":"en_US","og_type":"article","og_title":"How to Configure PHPFox with Memcached | FastComet","og_description":"Need to speed up your PHPFox application? \u27a4 Let's do it - learn how to setup Memcached caching. Take a look now \u261b FastComet \u261a step-by-step guide.","og_url":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached","og_site_name":"FastComet Blog","article_published_time":"2015-07-01T02:30:18+00:00","article_modified_time":"2022-06-10T07:28:25+00:00","og_image":[{"width":1024,"height":620,"url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/07\/phpFox-and-memcached.jpg","type":"image\/jpeg"}],"author":"Dimitar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dimitar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached","url":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached","name":"How to Configure PHPFox with Memcached | FastComet","isPartOf":{"@id":"https:\/\/www.fastcomet.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached#primaryimage"},"image":{"@id":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached#primaryimage"},"thumbnailUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/07\/phpFox-and-memcached.jpg","datePublished":"2015-07-01T02:30:18+00:00","dateModified":"2022-06-10T07:28:25+00:00","author":{"@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/dd2086ca553541505fd54e68edd11c7c"},"description":"Need to speed up your PHPFox application? \u27a4 Let's do it - learn how to setup Memcached caching. Take a look now \u261b FastComet \u261a step-by-step guide.","breadcrumb":{"@id":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached#primaryimage","url":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/07\/phpFox-and-memcached.jpg","contentUrl":"https:\/\/www.fastcomet.com\/blog\/wp-content\/uploads\/2015\/07\/phpFox-and-memcached.jpg","width":1024,"height":620},{"@type":"BreadcrumbList","@id":"https:\/\/www.fastcomet.com\/blog\/configure-phpfox-with-memcached#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fastcomet.com\/blog"},{"@type":"ListItem","position":2,"name":"How to Configure PHPFox with Memcached"}]},{"@type":"WebSite","@id":"https:\/\/www.fastcomet.com\/blog\/#website","url":"https:\/\/www.fastcomet.com\/blog\/","name":"FastComet Blog","description":"FastComet Web Hosting Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fastcomet.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/dd2086ca553541505fd54e68edd11c7c","name":"Dimitar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fastcomet.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/71b9cba1ee4b0befecd610aba3da6defe0e9af8bc45b0dd26d2f6b53e5731734?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71b9cba1ee4b0befecd610aba3da6defe0e9af8bc45b0dd26d2f6b53e5731734?s=96&d=mm&r=g","caption":"Dimitar"},"description":"Dimitar is Director of Technical Support at FastComet. He has dedicated more than ten years toward bridging gaps between customer satisfaction and technical support. As the leader of our support organization, he\u2019s responsible for educating, empowering and recognizing our support team and focusing on the science and art of quality, productivity, and technical prowess. He likes to be challenged with the tasks and do the research to approach the goal desired.","url":"https:\/\/www.fastcomet.com\/blog\/author\/daniel"}]}},"_links":{"self":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/comments?post=300"}],"version-history":[{"count":4,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/300\/revisions"}],"predecessor-version":[{"id":7950,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/posts\/300\/revisions\/7950"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media\/611"}],"wp:attachment":[{"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fastcomet.com\/blog\/wp-json\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}