PHP 5.4 & Laravel Class 'Memcached' not found

后端 未结 4 748
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 22:44

I realize there are about 10 of these questions out there but none fit me completely.

Steps completed:

  1. Installed memcache
  2. installed php memcac
相关标签:
4条回答
  • 2021-01-07 23:13

    If you are in a ubuntu environment, try to install Memcached with this:

    sudo apt-get install php5-memcached

    After that restart your server with

    sudo service lighttpd restart

    or

    sudo service apachectl2 restart

    or

    sudo service nginx restart

    0 讨论(0)
  • 2021-01-07 23:15

    Memcache and Memcached are two different PHP extensions. Memcache is the older deprecated one. Memcached is a much newer and fully supported extension.

    Check out http://pecl.php.net/package/memcached

    You may need to also install libmemcached https://launchpad.net/libmemcached/+download

    0 讨论(0)
  • 2021-01-07 23:17
    apt-get install php-memcached
    

    Solved the issue for "Class MemCached not found" coming from Laravel.

    0 讨论(0)
  • 2021-01-07 23:26

    In Laravel/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.

    0 讨论(0)
提交回复
热议问题