From 9f3010e75792261349cfd404a24c58bc5dd0d1e3 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 30 Jan 2018 18:36:52 +0530 Subject: [PATCH] apache2: Don't explicitly enable php7.0 module. Don't explicitly enable module php7.0. Rely on the package libapache2-mod-php installing the current version of the package and enabling. This ensures that when PHP version changes, the code is not broken. Signed-off-by: Sunil Mohan Adapa --- actions/apache | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/actions/apache b/actions/apache index 32d59743a..d7c36caeb 100755 --- a/actions/apache +++ b/actions/apache @@ -67,10 +67,15 @@ def subcommand_setup(_): # enable some critical modules to avoid restart while installing Plinth # applications. - webserver.enable('php7.0', kind='module') webserver.enable('cgi', kind='module') webserver.enable('authnz_ldap', kind='module') + # Don't explicitly enable module php7.0. Rely on the package + # libapache2-mod-php installing the current version of the package and + # enabling. This ensures that when PHP version changes, the code is not + # broken. + # webserver.enable('php7.0', kind='module') + # enable users to share files uploaded to ~/public_html webserver.enable('userdir', kind='module')