Talvez isso ajude você a: link
No meu caso, funcionou assim:
Não edite /etc/php/7.0/apache2/php.ini
Edite o arquivo /etc/php/7.0/mods-available/opcache.ini
E ative o modo opcache sudo phpenmod opcache
E reinicie o apache sudo phpenmod opcache