diff modules/website/manifests/php.pp @ 422:8421eb25c329

Fix PHP extension loading CentOS numbers the files, and the Puppet module doesn't clear out the old values, so we double-loaded. After deleting, it only puts specific ones back and so we need to specify more now rather than relying on the installers
author IBBoard <dev@ibboard.co.uk>
date Sat, 08 Oct 2022 20:58:14 +0100
parents 0c627ff3a7c3
children b91e948e8645
line wrap: on
line diff
--- a/modules/website/manifests/php.pp	Sat Oct 08 16:00:06 2022 +0100
+++ b/modules/website/manifests/php.pp	Sat Oct 08 20:58:14 2022 +0100
@@ -48,11 +48,19 @@
       'Data/date.timezone' => 'UTC',
     },
     extensions => {
-      gd => {},
-      mbstring => {},
+      gd => {
+        ini_prefix => '20-',
+      },
+      iconv => {
+        ini_prefix => '20-',
+      },
+      mbstring => {
+        ini_prefix => '20-',
+      },
       opcache => {
+        ini_prefix => '10-',
+        zend => true,
         settings => {
-          'zend_extension' => 'opcache.so',
           'opcache.enable' => 1,
           'opcache.enable_cli' => 1,
           'opcache.interned_strings_buffer' => 8,
@@ -62,7 +70,9 @@
           'opcache.revalidate_freq' => 1,
         }
       },
-      xml => {},
+      xml => {
+        ini_prefix => '20-',
+      },
     } + $extras,
   }
   apache::custom_config { "php.conf":