comparison modules/website/manifests/php.pp @ 419:0c627ff3a7c3

Fix PHP setup on CentOS
author IBBoard <dev@ibboard.co.uk>
date Sat, 08 Oct 2022 15:53:01 +0100
parents 76d18a918e7f
children 8421eb25c329
comparison
equal deleted inserted replaced
418:dd12bb713260 419:0c627ff3a7c3
9 $pcre_jit = 0 9 $pcre_jit = 0
10 } 10 }
11 else { 11 else {
12 $pcre_jit = 1 12 $pcre_jit = 1
13 } 13 }
14
15 file { '/run/php/':
16 ensure => directory,
17 } ->
14 class { '::php': 18 class { '::php':
15 ensure => present, 19 ensure => present,
16 manage_repos => false, 20 manage_repos => false,
17 fpm => true, 21 fpm => true,
22 fpm_service_enable => true,
23 fpm_service_ensure => 'running',
18 fpm_pools => { 24 fpm_pools => {
19 'www' => { 25 'www' => {
20 'listen' => '/run/php/php-fpm.sock', 26 'listen' => '/run/php/php-fpm.sock',
21 'listen_owner' => $::apache::params::user, 27 'listen_owner' => $::apache::params::user,
22 'listen_group' => $::apache::params::group, 28 'listen_group' => $::apache::params::group,