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