I am facing the same problem of installing memcache on a box, I tried it by
selecting memcache in easyapache, it failed
by using all_php5 at /var/cpanel/easy/apache/rawopts/ with the entry --enable-memcache this also failed
None of the above installed memcache.so for PHP
Finally downloading and building by source, following these steps:
Code:
cd usr/local/src/
wget http://pecl.php.net/get/memcache-3.0.3.tgz
tar xvfz memcache-2.1.0.tar.gz
cd memcache-3.0.3
phpize
./configure
make
make install
Since it installed memcache.so at
/usr/lib/php/extensions/no-debug-zts-20060613
Hence edited /usr/local/lib/php.ini to contain
Code:
extension = /usr/lib/php/extensions/no-debug-zts-20060613/memcache.so
memcache.allow_failover = 0
But that is also not working.
Output from httpd does shows:
Code:
root@web [/usr/local/src/memcache-3.0.3]# /usr/local/apache/bin/httpd -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_cache.c
mod_mem_cache.c
.
.
.
Any idea where things may be going wrong.
My OS, WHM version are:
cPanel 11.24.4-R33609 - WHM 11.24.2 - X 3.9
CENTOS 5.2 x86_64 on standard