miki208's avatar

[LUMEN 5.4] Class 'Memcached' not found

Hello everyone. I'm using Lumen 5.4 (PHP 5.6.30 used, XAMPP on Windows). When I try to run php artisan, I get this error:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Memcached' not found

I also tried on Ubuntu, but same result. Also tried to re-download vendor packages.

.env:

APP_ENV=local
APP_DEBUG=true
APP_KEY=mdkalaniasaohabwhwydu6782usjn
APP_TIMEZONE=UTC

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=tvprogram_api
DB_USERNAME=root
DB_PASSWORD=

CACHE_DRIVER=memcached
QUEUE_DRIVER=sync

It works pretty well with Lumen 5.3 and the same .env

EDIT: I installed memcached, and it works now. But I don't understand how it worked with Lumen 5.3 without memcached. Anyone?

0 likes
5 replies
miki208's avatar

@Ftoi But why it works with Lumen 5.3, and not with Lumen 5.4? (same configuration)

Abinas123's avatar
Level 1

In Lumen 5.4 just replace the CACHE_DRIVER=file in .env file, the artisan command will work perfectly, But you will not get all the command as same as laravel.

4 likes
priti's avatar

if you set CACHE_DRIVER=file or array then would it be saving info in memcache? NO. The data will store in the array or file NOT in memcache

and the error will remain same.

Please or to participate in this conversation.