我使用配置命令从源代码构建了 PHP
'./configure' '--prefix=/usr/local/php-5.2.8' '--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d' '--with-apxs2=/usr/local/httpd/bin/apxs' '--with-mysql=/usr/local/mysql/' '--with-zlib'
Run Code Online (Sandbox Code Playgroud)
我安装了 php memcache 扩展:
wget http://pecl.php.net/get/memcache
tar -zxvf memcache-2.2.5.tgz
cd memcache-2.2.5
phpize
./configure --enable-memcache
make
make install
Run Code Online (Sandbox Code Playgroud)
我添加到我的 /usr/local/lib/php.in
extension=memcache.so
Run Code Online (Sandbox Code Playgroud)
重新启动我的 apache 并运行 php-m 但 php 似乎没有加载 memcache 扩展我从这个网站http://www.howtoforge.com/forums/showthread.php?t=26554遵循了这个解决方案
我添加了完整路径
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20060613/memcache.so
Run Code Online (Sandbox Code Playgroud)
重新启动 apache 但它没有加载 memcache 扩展!我谷歌搜索但同样的问题!我怎样才能加载这个扩展 _ _”
您确定 memcached 安装在正确的位置吗?如果你运行你会得到什么:locate memcache.so
是否安装了 memcached(二进制文件)?它需要任何额外的库(libmemcache)吗?
| 归档时间: |
|
| 查看次数: |
28244 次 |
| 最近记录: |