Saturday, September 17, 2011

Centos5: Pear + memcache

Go ahead and install pear from the instructions here:

http://pear.php.net/manual/en/installation.getting.php

Its as simple as wget'ing the file of interest and then using it. After the "brief" installer, and I mean brief.

#> pecl install memcache

Note: I had to use kind of a PHP hack to get this working. ITs listed here: http://blog.mostlychris.com/2009/07/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted-pear/ .

It resolves a issue with a script running out of memory before the install completes.

Last but not least since this is a a Centos5 system you'll need to do the following:

echo "extension=memcache.so" > /etc/php.d/memcached.ini

No comments: