Created
April 22, 2010 05:55
-
-
Save kennethreitz/374871 to your computer and use it in GitHub Desktop.
Install memcache on a MediaTemple (dv)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
rpm --install rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
yum install --enablerepo=rpmforge memcached | |
memcached -d -m 512 -l 127.0.0.1 -p 11211 -u nobody | |
wget http://pecl.php.net/get/memcache-2.2.5.tgz | |
tar -xvf memcache-2.2.5.tgz | |
cd memcache-2.2.5 | |
phpize && ./configure --enable-memcache && make | |
cp /root/memcache-2.2.5/modules/memcache.so /usr/lib/php/modules/ | |
echo extension=memcache.so >> /etc/php.ini | |
/etc/init.d/httpd restart |
I can confirm this worked on the (dv) 4.0 with the one small path edit that @vinniefranco mentioned.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quick note: On a dv 3.x server I had to use /usr/lib64/php/modules