about uscontact

Class memcached not found error in Laravel

Author: zemna
Date: April 17, 2021
Share this:

If you got bellow error when use memcached in Laravel, please check following steps.

exception 'SymfonyComponentDebugExceptionFatalErrorException' with message 'Class 'Memcached' not found' in /var/www/gw/vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php:51

Install memcached

$ sudo apt-get install php5-memcached memcached

Enabled php5-memcached

sudo php5enmod memcached

Restart apache web server

$ sudo service apache2 restart

Check memcached service status

$ sudo service memcached status

* memcached is running

Clear cache

$ php artisan cache:clear
Share this:

Leave a Reply

Your email address will not be published.

ZEMNA.NET

Professional software development agency estalished in Indonesia. We offers website setup, web application development, fulfillment service, and etc.
Follow us
Follow us to get latest news and tutorials.
2022 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
magnifiercrossmenu