
ショコラ
OPcache を有効化するには?
「docker-php-ext-install opcache」を使います。

もっさん先輩
手順
- OPcache をインストールします。
docker-php-ext-install opcache
- OPcache を有効化します。
cat << EOS >> /usr/local/etc/php/php.ini
opcache.enable=1
opcache.enable_cli=1
EOS
- アパッチをリロードします。
service apache2 reload