php – 致命错误:/ my / path中找不到类’Memcached’
发布时间:2020-12-13 17:20:13 所属栏目:PHP教程 来源:网络整理
导读:当我尝试: $mc= new Memcached(); 我明白了 Fatal error: Class 'Memcached' not found in /my/path phpinfo说/etc/php5/apache2/conf.d/20-memcached.ini作为附加的.ini文件加载. 这个文件的内容是这个: ; uncomment the next line to enable the modulee
当我尝试:
$mc= new Memcached(); 我明白了 Fatal error: Class 'Memcached' not found in /my/path phpinfo说/etc/php5/apache2/conf.d/20-memcached.ini作为附加的.ini文件加载. 这个文件的内容是这个: ; uncomment the next line to enable the module extension=memcached.so dpkg –get-selections | grep memcached libmemcached6 install memcached install php5-memcached install Kubuntu的 为什么我有这个致命的错误? 解决方法
根据您的评论,我认为您没有正确安装它.确保您看到phpinfo()中的某个部分,例如:
memcached memcached support enabled Version x.x.x libmemcached version x.xx 1)获取libmemcached 2)配置包 3)make install sudo make install libmemcached 4)尝试使用sudo pecl install memcached进行安装 5)确保你的php.ini中有extension = memcached.so 重启Apache (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |