0
votes

I have PHP 5.4 on a litespeed web server. PHP has been compiled properly with memcached module and we also installed properly memcached library. In fact the problem suddenly happened without any change at all (server side) when I run the artisan command, I am getting this error: PHP Fatal error: Class 'Memcached' not found in /laravel/vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php on line 52 [Symfony\Component\Debug\Exception\FatalErrorException] Class 'Memcached' not found I googled the issue but was unable to find a solution. I am using Laravel 5.0. I edited the app/Http/Routes.php and returned new Memcached and the php object was returned properly... Any help would be appreciated.

1
if any can implement Memcached in laravel and wamp server vesion 7.0 + windows 7 64bit then please help me.i am tired to this implementation. - Jitendra Prajapati
Do you have memcached php extension (module) installed? - Denis Solakovic
yes,i installed Memcached extension and also edit php.ini file but still getting error. - Jitendra Prajapati
It seems something is wrong with namespace, try to make sure your namespaces are ok - Denis Solakovic
Can you show us the output of php -m? - apokryfos

1 Answers

-1
votes

I had the same issue.

Replace in .env file:

From : CACHE_DRIVER=memcached<br/>
To : CACHE_DRIVER=file**

then clear cache : php artisan cache:clear