File tree 5 files changed +34
-11
lines changed 5 files changed +34
-11
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ This file is used to list changes made in each version of the apache2 cookbook.
4
4
5
5
## Unreleased
6
6
7
+ - Add example of how to configure php fpm pool config for rhel9 and derivatives
8
+
7
9
## 9.3.3 - * 2024-07-15*
8
10
9
11
Standardise files with files in sous-chefs/repo-management
Original file line number Diff line number Diff line change @@ -50,13 +50,6 @@ suites:
50
50
- name : mod_php
51
51
run_list :
52
52
- recipe[test::php]
53
- excludes :
54
- - almalinux-9
55
- - amazonlinux-2023
56
- - centos-stream-9
57
- - fedora-latest
58
- - oraclelinux-9
59
- - rockylinux-9
60
53
- name : mod_wsgi
61
54
run_list :
62
55
- recipe[test::wsgi]
Original file line number Diff line number Diff line change 32
32
33
33
it do
34
34
is_expected . to enable_apache2_module ( 'php' ) . with (
35
- identifier : 'php7_module ' ,
36
- mod_name : 'libphp7.4 .so'
35
+ identifier : 'php_module ' ,
36
+ mod_name : 'libphp8.1 .so'
37
37
)
38
38
end
39
39
end
Original file line number Diff line number Diff line change 3
3
notifies :restart , 'apache2_service[default]'
4
4
end
5
5
6
- apache2_mod_php '' do
7
- notifies :reload , 'apache2_service[default]'
6
+ if apache_mod_php_supported?
7
+ apache2_mod_php '' do
8
+ notifies :reload , 'apache2_service[default]'
9
+ end
10
+ else
11
+ apache2_module 'proxy' do
12
+ notifies :reload , 'apache2_service[default]'
13
+ end
14
+ apache2_module 'proxy_fcgi' do
15
+ notifies :reload , 'apache2_service[default]'
16
+ end
17
+ apache2_mod_proxy 'proxy' do
18
+ notifies :reload , 'apache2_service[default]'
19
+ end
20
+ php_fpm_pool 'nagios' do
21
+ user default_apache_user
22
+ group default_apache_group
23
+ listen_user default_apache_user
24
+ listen_group default_apache_group
25
+ end
26
+ apache2_conf 'custom_php_pool' do
27
+ template_cookbook 'test'
28
+ options (
29
+ apache_php_handler : "proxy:unix:#{ php_fpm_socket } |fcgi://localhost"
30
+ )
31
+ notifies :reload , 'apache2_service[default]'
32
+ end
8
33
end
9
34
10
35
file "#{ default_docroot_dir } /info.php" do
Original file line number Diff line number Diff line change
1
+ < FilesMatch ".+\.ph(p[345]?|t|tml)$">
2
+ SetHandler "<%= @apache_php_handler %> "
3
+ </ FilesMatch >
You can’t perform that action at this time.
0 commit comments