File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 28
28
content '# conf is under mods-available/fcgid.conf - apache2 cookbook\n'
29
29
end
30
30
31
- if ( ( node [ 'platform_family' ] == 'rhel' ) && ( node [ 'platform_version' ] . to_i == 6 ) ) ||
32
- ( ( node [ 'platform_family' ] == 'fedora' ) && ( node [ 'platform_version' ] . to_i < 20 ) )
31
+ # CentOS 7 (and recent Fedoras) have Apache 2.4, where FCGI socket path
32
+ # and shared memory path is managed adequately without further involvment
33
+ # neccessary (subdirectory is created under /var/run/httpd).
34
+ #
35
+ # However, when the path is specified manually, that subdirectory is NOT
36
+ # created automatically if it doesn't already exist and Apache fails to
37
+ # start. Since in recent RHEL systems /var/run is on tmpfs, end result is
38
+ # that chef-created subdirectory disappears on shutdown, and Apache fails
39
+ # to start after server reboot. Best to leave out these two settings
40
+ # unset then.
41
+ if ( ( node [ 'platform_family' ] == 'rhel' ) && ( node [ 'platform_version' ] . to_i == 6 ) )
33
42
directory '/var/run/httpd/mod_fcgid' do
34
43
owner node [ 'apache' ] [ 'user' ]
35
44
group node [ 'apache' ] [ 'group' ]
Original file line number Diff line number Diff line change 3
3
IPCConnectTimeout 20
4
4
</ IfModule >
5
5
6
- <% if ( ( node [ 'platform_family' ] == 'rhel' ) && ( node [ 'platform_version' ] . to_i == 6 ) ) ||
7
- ( ( node [ 'platform_family' ] == 'fedora' ) && ( node [ 'platform_version' ] . to_i < 20 ) ) -%>
6
+ <% if ( ( node [ 'platform_family' ] == 'rhel' ) && ( node [ 'platform_version' ] . to_i == 6 ) ) -%>
8
7
# Sane place to put sockets and shared memory file
9
8
SocketPath run/mod_fcgid
10
9
SharememPath run/mod_fcgid/fcgid_shm
You can’t perform that action at this time.
0 commit comments