Downgrade mysql cookbook for now

It doesn't play well with our current dev server setup
This commit is contained in:
Greg Karékinian
2017-06-16 22:43:51 +02:00
parent e39792ea36
commit bdfb3a1afb
398 changed files with 12716 additions and 10889 deletions

View File

@@ -3,7 +3,7 @@
IPCConnectTimeout 20
</IfModule>
<% if %w[rhel fedora].include?(node['platform_family']) -%>
<% if (node['platform_family'] == 'rhel') && (node['platform_version'].to_i == 6) -%>
# Sane place to put sockets and shared memory file
SocketPath run/mod_fcgid
SharememPath run/mod_fcgid/fcgid_shm

View File

@@ -9,6 +9,7 @@
StartServers <%= node['apache']['prefork']['startservers'] %>
MinSpareServers <%= node['apache']['prefork']['minspareservers'] %>
MaxSpareServers <%= node['apache']['prefork']['maxspareservers'] %>
ServerLimit <%= node['apache']['prefork']['serverlimit'] %>
MaxRequestWorkers <%= node['apache']['prefork']['maxrequestworkers'] %>
MaxConnectionsPerChild <%= node['apache']['prefork']['maxconnectionsperchild'] %>
<% else -%>

View File

@@ -0,0 +1,35 @@
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ".+\.phps$">
SetHandler application/x-httpd-php-source
# Deny access to raw php sources by default
# To re-enable it's recommended to enable access to the files
# only in specific virtual host or directory
<% if node['apache']['version'] == '2.4' -%>
Require all denied
<% else -%>
Order Deny,Allow
Deny from all
<% end -%>
</FilesMatch>
# Deny access to files without filename (e.g. '.php')
<FilesMatch "^\.ph(p[3457]?|t|tml|ps)$">
<% if node['apache']['version'] == '2.4' -%>
Require all denied
<% else -%>
Order Deny,Allow
Deny from all
<% end -%>
</FilesMatch>
# Running PHP scripts in user directories is disabled by default
#
# To re-enable PHP in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>

View File

@@ -1,37 +0,0 @@
<IfModule mod_php5.c>
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch ".+\.phps$">
SetHandler application/x-httpd-php-source
# Deny access to raw php sources by default
# To re-enable it's recommended to enable access to the files
# only in specific virtual host or directory
<% if node['apache']['version'] == '2.4' -%>
Require all denied
<% else -%>
Order Deny,Allow
Deny from all
<% end -%>
</FilesMatch>
# Deny access to files without filename (e.g. '.php')
<FilesMatch "^\.ph(p[345]?|t|tml|ps)$">
<% if node['apache']['version'] == '2.4' -%>
Require all denied
<% else -%>
Order Deny,Allow
Deny from all
<% end -%>
</FilesMatch>
# Running PHP scripts in user directories is disabled by default
#
# To re-enable PHP in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>