Tutorials, guides and know hows useful on the World Wide Web: social networking, web design, programming, domains, hosting and more.
Post Reply

How To Enable Memcache PHP Cache For PHPBB Board

Post by HowTutor » 11 Apr 2015, 10:06

Ho to enable Memcache alternative php cache system for your PHPBB board is as detailed below.

Steps:

1. Make sure latest stable version of pecl memcache is installed on your server and enabled in your php.ini. Use correct path to memcache.so and create forum backup.

2. Open config.php and edit it look like below

Code: Select all

<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'mysqli'; // What kind of database do you use?
$dbhost = 'localhost'; // Your host for most of us localhost will work just fine..
$dbport = ''; // Only needed if a non-standard port is used...
$dbname = 'YOUR-DATABASE-NAME';
$dbuser = 'YOUR-USERNAME';
$dbpasswd = 'YOUR-PASSWORD';
$table_prefix = 'phpbb_';
$acm_type = 'memcache'; // Standard is apc or file, change this to memcache but first you slould make sure it's installed and working corectly!!
// Add the lines below and: DO NOT CHANGE ORDER!
@define('PHPBB_ACM_MEMCACHE_HOST', 'localhost'); // Memcache server hostname
@define('PHPBB_ACM_MEMCACHE_PORT', 11211); // Memcache server poort
@define('PHPBB_ACM_MEMCACHE_COMPRESS', false); // Compress stored data true or false if used CPU usage will grow but bandwidth will be lower I use it on a 8core server..
$load_extensions = 'memcache';

@define('PHPBB_INSTALLED', true);
// @define('DEBUG', true); // uncommend to debug, it will give you a lot of information -  do not remove if forum is working well
// @define('DEBUG_EXTRA', true); // uncommend to debug, it will give you a lot of information - do not remove if forum is working well

?>
3. Visit your phpbb forum and enjoy the higher speed.

NOTE 1: $load_extensions = 'memcache'; must be AFTER the ACM_MEMCACHE settings

NOTE 2: I hope this is a useful message for some of you phpBB users - before edit config.php, make sure you created a backup of your files and make sure memcache is working and enabled in php.ini, use the corect path to memcache.so, find corect memcache path and add full path to memcache.so to php.ini file

SHARE THIS NOW!


Post Reply
  • Similar Topics
    Replies
    Views
    Last post