我用this指南在CentOS 6.5安装memcached的检查是否安装了memcached?
我首先检查
/etc/init.d/memcached status and
memcached (pid 14784) is running...
然后重新启动
service httpd restart
但是,当我尝试使用memcached的软件(prosper202)我得到
Fatal error: Call to a member function getCapabilities() on a non-object in /var/zpanel/hostdata/zadmin/public_html/******_com/3rd-parties/wurfl/WURFL/CustomDeviceRepository.php on line 72
我不知道是什么造成的。
这里是我的WURFL配置文件
<?php
include($_SERVER['DOCUMENT_ROOT'] . '/202-config.php');
$configuration = array(
// WURFL File Configuration
'wurfl' => array(
'main-file' => 'wurfl.zip',
'patches' => array("web_browsers_patch.xml"),
),
// Persistence (Long-Term Storage) Configuration
'persistence' => array(
'provider' => 'mysql',
'params' => array('host'=>$dbhost,
'port'=>3306,
'db'=>$dbname,
'user'=>$dbuser,
'pass'=>$dbpass),
),
// Cache (Short-Term Storage) Configuration
'cache' => array(
'provider' => 'memcache',
'params' => 'host='.$mchost.',port=11211,namespace=wurfl',
),
);
你能发布WURFL的配置设置吗?我相信你的问题是你的WURFL配置,而不是你自己安装的memcached。 –
我明白了。我添加了配置。 – Vuybe