I have installed and configured Memcached by following this thread: https://www.vbulletin.com/forum/blogs/dick/3936342-
When accessing the cache test file in a web browser i get this result: Server's version: 1.4.15 Data from the cache: stdClass Object ( [string_attribute] => 123 )
I have configured /includes/config.php as follows:
I am running centos minimal distro with apache 2 and Mysql-MariaDB.
nano /var/log/httpd/error_log gives me this error:
When running "top" command i get this for Memcache: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5220 memcach+ 20 0 345120 2732 1176 S 0.0 0.0 0:00.27 memcached
Any help as to why memcached cannot connect will be greatly appreciated.
When accessing the cache test file in a web browser i get this result: Server's version: 1.4.15 Data from the cache: stdClass Object ( [string_attribute] => 123 )
I have configured /includes/config.php as follows:
PHP Code:
// ****** DATASTORE CACHE CONFIGURATION *****
// Here you can configure different methods for caching datastore items.
// vB_Datastore_Filecache - to use includes/datastore/datastore_cache.php
// vB_Datastore_APC - to use APC
// vB_Datastore_XCache - to use XCache
// vB_Datastore_Memcached - to use a Memcache server, more configuration below
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
// ******** DATASTORE PREFIX ******
// If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
// than one set of forums installed on your host, you *may* need to use a prefix
// so that they do not try to use the same variable within the cache.
// This works in a similar manner to the database table prefix.
$config['Datastore']['prefix'] = 'forum1_';
// It is also necessary to specify the hostname or IP address and the port the server is listening on
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
#$i++;
#$config['Misc']['memcacheserver'][$i] = '127.0.0.1';
#$config['Misc']['memcacheport'][$i] = 11211;
#$config['Misc']['memcachepersistent'][$i] = true;
#$config['Misc']['memcacheweight'][$i] = 1;
#$config['Misc']['memcachetimeout'][$i] = 1;
#$config['Misc']['memcacheretry_interval'][$i] = 15;
nano /var/log/httpd/error_log gives me this error:
Memcache::connect(): Can't connect to :0, Failed to parse address "" (0) in /var/www/html/includes/class_datastore.php on line$
5220 memcach+ 20 0 345120 2732 1176 S 0.0 0.0 0:00.27 memcached
Any help as to why memcached cannot connect will be greatly appreciated.