TPerry
Well-known member
I have just installed memcached on my dedicated server (Debian Wheezy) and enabled (per the manual) the backend.
When I go to the site I now get
The PHP5 module looks to be loaded
I've given it 512MB for the cache in memcached.conf.
When checking netstat I get this
I've restarted php5-fpm numerous times as well as nginx.
I've tested to see that it is loaded using a test php file containing
and I get the test data pulled from Cache! statement when browsing to it and refreshing - which I believe indicates that the cache is working.
Any hints on where to look?
This was resolved by further testing by me. In addition to doing having to do
you have to also do
When I go to the site I now get
Code:
An exception occurred: The memcache extension must be loaded for using this backend ! in /var/www/twowheel/library/Zend/Cache.php on line 209
Zend_Cache::throwException() in Zend/Cache/Backend/Memcached.php at line 123
Zend_Cache_Backend_Memcached->__construct() in Zend/Cache.php at line 153
Zend_Cache::_makeBackend() in Zend/Cache.php at line 94
Zend_Cache::factory() in XenForo/Application.php at line 718
XenForo_Application->loadCache()
call_user_func_array() in XenForo/Application.php at line 921
XenForo_Application->lazyLoad() in XenForo/Application.php at line 952
XenForo_Application::get() in XenForo/Application.php at line 1376
XenForo_Application::getCache() in XenForo/Model.php at line 146
XenForo_Model->_getCache() in XenForo/Model/DataRegistry.php at line 81
XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 144
XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
XenForo_FrontController->run() in /var/www/twowheel/index.php at line 13
The PHP5 module looks to be loaded
I've given it 512MB for the cache in memcached.conf.
When checking netstat I get this
Code:
netstat -tap | grep memcached
tcp 0 0 localhost:11211 *:* LISTEN 3542/memcached
I've restarted php5-fpm numerous times as well as nginx.
I've tested to see that it is loaded using a test php file containing
Code:
<?php
$mc = new Memcached();
$mc->addServer("127.0.0.1", 11211);
.
$result = $mc->get("test_key");
.
if($result) {
echo $result;
} else {
echo "No data on Cache. Please refresh page pressing F5";
$mc->set("test_key", "test data pulled from Cache!") or die ("Failed to save data at Memcached server");
}
?>
This was resolved by further testing by me. In addition to doing having to do
Code:
aptitude install memcached php5-memcached
Code:
aptitude install php5-memcache
Last edited: