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 <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2018-01-30 18:36:52 +05:30
parent 527aa66494
commit 9f3010e757
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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')