Unable to install Redis Extension for PHP 8.3 MacOS using Homebrew

452 Views Asked by At

I am trying to install PHP-Redis extension in MacOS for PHP 8.3 using Homebrew but after installing I am getting this error.

/usr/local/Cellar/php/8.3.0/pecl/20230831/redis.so doesn't appear to be a valid Zend extension

Here are the steps that I took

pecl install redis
// Added ext-redis.ini and removed exetension entry from php.ini

This process worked for all other extensions like Xdebug and such but not for this one. Anyway to fix this issue.

0

There are 0 best solutions below