Wednesday, August 17, 2011

PHP Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'The memcache extension must be loaded for using this backend !'

This issue comes when i run my application on Ubuntu. So i want to share the steps which i follow to resolve this.
First install memcached 
   $ sudo apt-get install memcached  
Second
  $ sudo apt-get install libevent*

Third
  $ sudo apt-get install php5-memcache

After this memcached automatically start. You can check with the below command
 $ service memcached status

If memcached not started then do 
$ memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211

and at last restart the apache
$ sudo service apache2 restart



No comments:

Post a Comment