Trying to install redis extensions for php 7.0 on my high sierra apache.
brew install php-redis
- doesn't work.
brew install [email protected]
- doesn't work.
brew install php70-redis
- doesn't work.
google google google - Homebrew is the wrong approach, use pecl, they say.
pecl search redis
shows:
redis 4.0.2 (stable) 4.0.2 PHP extension for interfacing with Redis
so pecl install redis
pecl/redis is already installed and is the same as the released version 4.0.2
install failed
hmm. that's right. And I've put in the reference to the ini file:
cat /usr/local/etc/php/7.0/conf.d/ext-redis.ini
[redis]
extension="/usr/local/lib/php/pecl/20160303/redis.so"
sudo service apachectl -k restart
check phpinfo() - no mention of redis but it does state that it is loading at the ext-redis.ini file.
Definately not loading, since if I try to use it on a php page I get
Fatal error: Uncaught phpFastCache\Exceptions\phpFastCacheDriverCheckException: Redis is not installed or is misconfigured, cannot continue.
What are the steps for getting redis connected in php on macos in 2018?
sudo port install php-redis
– Antipaterphp-redis
. – Caducous