for ubuntu servers if memcache not installed:
Code:
apt-get install memcached
Code:
pecl install Memcache
Edit your php.ini:
Code:
vi /etc/php5/apache2/php.ini
Add the following line add the end of the file and seve the changes:
Code:
extension=/usr/lib/php5/20090626+lfs/memcache.so
(or where ever your memcache.so is locateded, if not sure do - updatedb then locate memcache.so)
Code:
service apache2 restart
Code:
service memcached start
Check if memcached is running:
Code:
ps aux | grep memcached
Hope that helps you!
Bump: If windows xp , vista, windows 7 :
Go to your
php.ini file usually located in
C:/xampp/php/php.ini
add:
Code:
extension=php_memcache.dll
then under it:
Code:
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts=20
memcache.chunk_size =8192
memcache.default_port = 11211
Then add this to your htdocs/php/ext/:
php_memcache.dll
download link : http://speedy.sh/aQJHG/php-memcache.dll
then add this folder to C drive or your main drive:
http://speedy.sh/Ft5ae/memcached.rar
make sure to unrar it.
now start it via their or you can run this command:
Code:
c:\memcached\memcached.exe -d install
& it should work fine.
I have only tested this on xampp 1.8.1-VC9
good luck!....