Saturday, November 12, 2022

[FIXED] How to install php-memcached extension on Mac OS High Sierra

Issue

I installed successfully memcached-server, but got an error in my php-script:

Class 'Memcached' not found

I should to install php-memcached extension to fix it, but i dont know how.

I searched howto's, but all what i found is about installing php5*-memcached with brew. But i need an extension for php7.1,

brew install php71-memcached doesnt work


Solution

This should help:

pecl install memcached

Memcached extension is available for PHP 7.0.0 or newer.



Answered By - Joozty
Answer Checked By - Gilberto Lyons (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.