add extra configuration for Apache + PHP-FPM, fixes #482
This commit is contained in:
@@ -39,6 +39,12 @@ return Array(
|
||||
'mkdir -p ' . $settings['system']['mod_fcgid_tmpdir'],
|
||||
'chmod 1777 ' . $settings['system']['mod_fcgid_tmpdir']
|
||||
),
|
||||
'files' => ((int)$settings['phpfpm']['enabled'] == 1) ?
|
||||
Array(
|
||||
'etc_apache2_modules.d_70_fastcgi.conf' => '/etc/apache2/modules.d/70_fastcgi.conf'
|
||||
)
|
||||
:
|
||||
null,
|
||||
'restart' => Array(
|
||||
'rc-update add apache2 default',
|
||||
'/etc/init.d/apache2 restart'
|
||||
|
||||
@@ -34,6 +34,12 @@ return Array(
|
||||
'chmod 1777 ' . $settings['system']['mod_fcgid_tmpdir'],
|
||||
'a2dismod userdir'
|
||||
),
|
||||
'files' => ((int)$settings['phpfpm']['enabled'] == 1) ?
|
||||
Array(
|
||||
'etc_apache2_mods-enabled_fastcgi.conf' => '/etc/apache2/mods-enabled/fastcgi.conf'
|
||||
)
|
||||
:
|
||||
null,
|
||||
'restart' => Array(
|
||||
'/etc/init.d/apache2 restart'
|
||||
)
|
||||
|
||||
@@ -34,6 +34,12 @@ return Array(
|
||||
'chmod 1777 ' . $settings['system']['mod_fcgid_tmpdir'],
|
||||
'a2dismod userdir'
|
||||
),
|
||||
'files' => ((int)$settings['phpfpm']['enabled'] == 1) ?
|
||||
Array(
|
||||
'etc_apache2_mods-enabled_fastcgi.conf' => '/etc/apache2/mods-enabled/fastcgi.conf'
|
||||
)
|
||||
:
|
||||
null,
|
||||
'restart' => Array(
|
||||
'/etc/init.d/apache2 restart'
|
||||
),
|
||||
|
||||
@@ -34,6 +34,12 @@ return Array(
|
||||
'chmod 1777 ' . $settings['system']['mod_fcgid_tmpdir'],
|
||||
'a2dismod userdir'
|
||||
),
|
||||
'files' => ((int)$settings['phpfpm']['enabled'] == 1) ?
|
||||
Array(
|
||||
'etc_apache2_mods-enabled_fastcgi.conf' => '/etc/apache2/mods-enabled/fastcgi.conf'
|
||||
)
|
||||
:
|
||||
null,
|
||||
'restart' => Array(
|
||||
'/etc/init.d/apache2 restart'
|
||||
),
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<IfModule mod_fastcgi.c>
|
||||
FastCgiWrapper /usr/lib/apache2/suexec
|
||||
FastCgiIpcDir /var/run/apache2/
|
||||
|
||||
<Location "/fastcgiphp">
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
# Prevent accessing this path directly
|
||||
Allow from env=REDIRECT_STATUS
|
||||
</Location>
|
||||
</IfModule>
|
||||
@@ -0,0 +1,11 @@
|
||||
<IfModule mod_fastcgi.c>
|
||||
FastCgiWrapper /usr/sbin/suexec
|
||||
FastCgiIpcDir /var/run/apache2/
|
||||
|
||||
<Location "/fastcgiphp">
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
# Prevent accessing this path directly
|
||||
Allow from env=REDIRECT_STATUS
|
||||
</Location>
|
||||
</IfModule>
|
||||
@@ -0,0 +1,11 @@
|
||||
<IfModule mod_fastcgi.c>
|
||||
FastCgiWrapper /usr/lib/apache2/suexec
|
||||
FastCgiIpcDir /var/run/apache2/
|
||||
|
||||
<Location "/fastcgiphp">
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
# Prevent accessing this path directly
|
||||
Allow from env=REDIRECT_STATUS
|
||||
</Location>
|
||||
</IfModule>
|
||||
@@ -0,0 +1,11 @@
|
||||
<IfModule mod_fastcgi.c>
|
||||
FastCgiWrapper /usr/lib/apache2/suexec
|
||||
FastCgiIpcDir /var/run/apache2/
|
||||
|
||||
<Location "/fastcgiphp">
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
# Prevent accessing this path directly
|
||||
Allow from env=REDIRECT_STATUS
|
||||
</Location>
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user