PHP致命错误:找不到类'Memcached' [英] PHP Fatal error: Class 'Memcached' not found in
本文介绍了PHP致命错误:找不到类'Memcached'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
php -v:
PHP 5.5.10-1+deb.sury.org~precise+1 (cli) (built: Mar 27 2014 16:18:01)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo
dpkg -l | grep php5
dpkg -l | grep php5
结果
rc php5-memcache 3.0.6-1 memcache extension module for PHP5
rc php5-memcached 1.0.2-2 memcached extension module for PHP5, uses libmemcached
ii php5-mysql 5.5.10+dfsg-1+deb.sury.org~precise+1 MySQL module for php5
php.ini设置.
php.ini setting .
;;;;;;;;;;;;;;;;;;;;;;;;;
;; memchached ;;
;;;;;;;;;;;;;;;;;;;;;;;;;
extension=/usr/lib/php5/20090626/memcache.so
extension=memcached.so
memcache.hash_strategy="consistent"
但是phpinfo没有显示memchache详细信息.
和php脚本给出PHP Fatal error: Class 'Memcached' not found in
but phpinfo not showing memchache details.
and php script giving PHP Fatal error: Class 'Memcached' not found in
推荐答案
php5-memcache
和php5-memcached
未安装. dpkg输出中的"rc"
表示软件包已卸载,并且配置已保留.
php5-memcache
and php5-memcached
aren't installed. the "rc"
in the dpkg output means, that the packages have been uninstalled, and that the configuration has been kept.
这篇关于PHP致命错误:找不到类'Memcached'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文