From 8c1517ce8dc15b98d87f3d48df37b2dfb3f438d0 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Thu, 3 Mar 2016 12:01:01 +0530 Subject: [PATCH] php 5.6 + php7 --- ee/cli/plugins/site_functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 81fc539e..a896b7ee 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -720,12 +720,12 @@ def site_package_check(self, stype): if self.app.pargs.php7 and stype in [ 'mysql', 'wp', 'wpsubdir', 'wpsubdomain']: if EEVariables.ee_platform_codename == 'trusty': - Log.debug(self, "Setting apt_packages variable for PHP 7.0") - if not EEAptGet.is_installed(self, 'php7.0-fpm'): - apt_packages = apt_packages + EEVariables.ee_php7_0 + EEVariables.ee_php_extra Log.debug(self, "Setting apt_packages variable for PHP 5.6") if not EEAptGet.is_installed(self, 'php5.6-fpm'): apt_packages = apt_packages + EEVariables.ee_php5_6 + EEVariables.ee_php_extra + Log.debug(self, "Setting apt_packages variable for PHP 7.0") + if not EEAptGet.is_installed(self, 'php7.0-fpm'): + apt_packages = apt_packages + EEVariables.ee_php7_0 + EEVariables.ee_php_extra else: Log.warn(self, "PHP 7.0 not available for your system.") Log.info(self,"Creating site with PHP 5.6")