diff --git a/install/updates/preconfig/0.9/preconfig_0.9.inc.php b/install/updates/preconfig/0.9/preconfig_0.9.inc.php
index 75ce4c82..c017fb8f 100644
--- a/install/updates/preconfig/0.9/preconfig_0.9.inc.php
+++ b/install/updates/preconfig/0.9/preconfig_0.9.inc.php
@@ -548,4 +548,26 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version)
$question = '';
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
}
+
+ // let the apache+fpm users know that they MUST change their config
+ // for the domains / webserver to work after the update
+ if (versionInUpdate($current_version, '0.9.30-dev1')) {
+ if ($settings['system']['webserver'] == 'apache2'
+ && $settings['phpfpm']['enabled'] == '1'
+ ) {
+ $has_preconfig = true;
+ $description = 'The PHP-FPM implementation for apache2 has changed. Please look for the "fastcgi.conf" (Debian/Ubuntu) or "70_fastcgi.conf" (Gentoo) within /etc/apache2/ and change it as shown below:
';
+ $description .= '
<IfModule mod_fastcgi.c> + FastCgiIpcDir /var/run/apache2/ + <Location "/fastcgiphp"> + Order Deny,Allow + Deny from All + # Prevent accessing this path directly + Allow from env=REDIRECT_STATUS + </Location> +</IfModule>'; + $question = ''; + eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";"); + } + } } diff --git a/templates/Sparkle/admin/update/preconfigitem.tpl b/templates/Sparkle/admin/update/preconfigitem.tpl index 5bf40f2c..99e23531 100644 --- a/templates/Sparkle/admin/update/preconfigitem.tpl +++ b/templates/Sparkle/admin/update/preconfigitem.tpl @@ -1,6 +1,4 @@
- {$description} - {$question} -
+ {$description} + {$question}+ +
- + $footer