问题描述
我有一个Drupal网站运行在新的MAMP PRO 3.0.3安装与PHP版本5.3.28在OS X小牛10.9.2。我安装memcache使用 c中添加 extension = memcache.so / code>在扩展部分,但仍然Drupal显示多个您必须启用PECL memcache或memcache扩展名以使用页面顶部的memcache.inc。错误。
$ drupal根目录下的b$ b
phpinfo()告诉我,加载的配置文件位于:
图书馆/应用程序支持/ appsolute / MAMP PRO / conf / php5.3.28.ini
,扩展名为:
/Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug-non-zts-20090626 /
我做错了什么或这个问题与MAMP PRO 3有关?我已经安装了自制软件的memcached二进制文件,该进程正在运行。
我还在MAMP中为每个主机设置使用个人PHP版本。
启动Apache时,日志中出现错误:
这是什么意思。
$ b
感谢您的帮助!
我没有获得提供的memcache扩展由pecl编辑工作。我甚至安装了PHP 5.3.14但遇到同样的问题。然后,我从github克隆了存储库,并从那里使用了memcached扩展名它工作正常。
I have a Drupal site running on fresh MAMP PRO 3.0.3 install with the PHP version 5.3.28 on OS X Mavericks 10.9.2.
I installed memcache with pecl install memcache and added the extension=memcache.so line in php.iniunder the extensions section, but still Drupal shows multiple You must enable the PECL memcached or memcache extension to use memcache.inc. errors on top of the page.
phpinfo() on the Drupal root directory tells me that the configuration file loaded is at:
/Library/Application Support/appsolute/MAMP PRO/conf/php5.3.28.ini
and the extension dir is:
/Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug-non-zts-20090626/
What am I doing wrong or is this problem related to MAMP PRO 3? I've installed the memcached binaries with homebrew and the process is running.
I'm also using the Individual PHP versions for every host setting in MAMP.
When starting Apache, there is an error in the logs:
What does this mean.
Thanks for your help!
I did not get the memcache extension provided by pecl to work at all. I even installed PHP 5.3.14 but encountered the same problem. Then I cloned the php-memcached-mamp repository from github and used the memcached extension from there and it worked ok.
这篇关于Memcached安装在MA 5.3.3上的PHP 5.3.28上,但不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!