diff --git a/tasks/main.yml b/tasks/main.yml index a369324524321ba42aa81d0eeb12d162fc7a804c..39b93d7cb29dfb68cae960c240fac5be1a8117b0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -13,13 +13,6 @@ - include_tasks: php.yml - - name: "Disable OpCache for CLI and FPM, they are there twice" - command: 'phpdismod -s {{ item }} opcache' - with_items: - - 'cli' - - 'fpm' - when: php_version|default("5.5") == "7" - - name: "Link PhpEnMod for PHP 5.3" file: dest: '/usr/local/bin/php{{ item }}' diff --git a/templates/etc-php5-conf-d-opcache.ini b/templates/etc-php5-conf-d-opcache.ini index 139c391d527e8dcd094c22b3bfe56ed249f74f34..b25a5b8d53bfda8432713903e6a0117b7506800c 100644 --- a/templates/etc-php5-conf-d-opcache.ini +++ b/templates/etc-php5-conf-d-opcache.ini @@ -1,3 +1,4 @@ +; priority=10 zend_extension=opcache.so opcache.enable=1 opcache.memory_consumption={{ opcache_memory_consumption }}