Memcached安装在MA 5.3.3上的PHP 5.3.28上,但不起作用 [英] Memcached is installed on PHP 5.3.28 on MAMP 3.0.3, but not working

查看:237
本文介绍了Memcached安装在MA 5.3.3上的PHP 5.3.28上,但不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Drupal网站运行在新的MAMP PRO 3.0.3安装与PHP版本5.3.28在OS X小牛10.9.2。



我安装memcache使用 pecl install memcache 并在 php.ini 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 /


$ cat/库/应用程序支持/ appsolute / MAMP PRO / conf / php5.3.28.ini grep memcache
extension = memcache.so



$ ls /Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug -non-zts-20090626 / | grep memcache



-rwxrwxr-x 1用户admin 65K 3月28日14:00 memcache.so *


我做错了什么或这个问题与MAMP PRO 3有关?我已经安装了自制软件的memcached二进制文件,该进程正在运行。



我还在MAMP中为每个主机设置使用个人PHP版本。



启动Apache时,日志中出现错误:


PHP警告:PHP启动:无法加载动态库'/应用程序/ MAMP / bin / php / php5.3.28 / lib / php / extensions / no-debug-non-zts-20090626 / memcache.so' - dlopen(/Applications/MAMP/bin/php/php5.3.28/lib/ php / extensions / no-debug-non-zts-20090626 / memcache.so,9):找不到符号:_zend_new_interned_string
引用自:/Applications/MAMP/bin/php/php5.3.28/lib/php/ extension / no-debug-non-zts-20090626 / memcache.so
预期在:平面命名空间
in /Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no- debug-non-zts-20090626 / memcache.so in Unknown 0行


这是什么意思。
$ b

感谢您的帮助!

解决方案

我没有获得提供的memcache扩展由pecl编辑工作。我甚至安装了PHP 5.3.14但遇到同样的问题。然后,我从github克隆了 php-memcached-mamp 存储库,并从那里使用了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/

$ cat "/Library/Application Support/appsolute/MAMP PRO/conf/php5.3.28.ini" | grep memcache extension=memcache.so

$ ls /Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug-non-zts-20090626/ | grep memcache

-rwxrwxr-x 1 user admin 65K Mar 28 14:00 memcache.so*

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:

PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug-non-zts-20090626/memcache.so' - dlopen(/Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug-non-zts-20090626/memcache.so, 9): Symbol not found: _zend_new_interned_string Referenced from: /Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug-non-zts-20090626/memcache.so Expected in: flat namespace in /Applications/MAMP/bin/php/php5.3.28/lib/php/extensions/no-debug-non-zts-20090626/memcache.so in Unknown on line 0

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上,但不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆