diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c775eb..e3dc02f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Update WP-CLI to v2.6.0 with PHP 8.0/8.1 support - Update adminer to v4.8.1 - Update Redis repository ([PR #377](https://github.com/WordOps/WordOps/pull/377)) +- Set PHP 8.0 as default PHP version. Can be changed in `/etc/wo/wo.conf` #### Fixed diff --git a/wo/cli/plugins/stack_services.py b/wo/cli/plugins/stack_services.py index 7999b03..7d83a3c 100644 --- a/wo/cli/plugins/stack_services.py +++ b/wo/cli/plugins/stack_services.py @@ -411,6 +411,14 @@ class WOStackStatusController(CementBaseController): services = services + ['php7.4-fpm'] else: Log.info(self, "PHP7.4-FPM is not installed") + if os.path.exists('{0}'.format(wo_system) + 'php8.0-fpm.service'): + services = services + ['php8.0-fpm'] + else: + Log.info(self, "PHP8.0-FPM is not installed") + if os.path.exists('{0}'.format(wo_system) + 'php8.1-fpm.service'): + services = services + ['php8.1-fpm'] + else: + Log.info(self, "PHP8.1-FPM is not installed") if pargs.php72: if os.path.exists('{0}'.format(wo_system) + 'php7.2-fpm.service'):