From e59bb82e69fed472017c66996c86a40ddd715299 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Tue, 05 Apr 2016 11:28:01 -0400 Subject: [PATCH] Fixed Open Issue #3789 php-fpm reload workaround targeted at Ubuntu 14.04 breaks newer/fixed PHP packages on Ubuntu 14.04 --- server/mods-available/web_module.inc.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/server/mods-available/web_module.inc.php b/server/mods-available/web_module.inc.php index 3ba0cfb..6d3e8c1 100644 --- a/server/mods-available/web_module.inc.php +++ b/server/mods-available/web_module.inc.php @@ -265,7 +265,8 @@ // @see: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1242376 if(file_exists('/etc/os-release')) { $tmp = file_get_contents('/etc/os-release'); - if(preg_match('/^ID=ubuntu/m', $tmp) && preg_match('/^VERSION_ID="14\.04"/m', $tmp)) { + //if(preg_match('/^ID=ubuntu/m', $tmp) && preg_match('/^VERSION_ID="14\.04"/m', $tmp)) { + if(preg_match('/^ID=ubuntu/m', $tmp) && preg_match('/^VERSION_ID="14\.04"/m', $tmp) && stristr(phpversion(), 'deb.sury.org') === false) { $initcommand = '/sbin/start-stop-daemon --stop --signal USR2 --quiet --pidfile /var/run/php5-fpm.pid --name php5-fpm'; } // And the next workaround, php-fpm reloads in centos 7 downt work as well. -- Gitblit v1.9.1