APCu with PHP7 on Dreamhost

Submitted by kentr on Thu, 07/07/2016 - 10:20
  1. Download & unpack APCu
    curl -s https://pecl.php.net/get/apcu-5.1.5.tgz | tar xzvf - && \
    cd apcu-5.1.5
  2. phpize with PHP7, then configure & make
    /usr/local/php70/bin/phpize
    ./configure
    make
  3. Copy modules/apcu.so to extensions dir (create dir if necessary):
    cp modules/apcu.so ~/.php/7.0/extensions
  4. Add to ~/.php/7.0/phprc:
    extension="/home/your_username/.php/7.0/extensions/apcu.so"
  5. Kill fcgi processes to force config reload:
    killall -9 php70.cgi