iGraphics
Basic Pleskian
- Server operating system version
- AlmaLinux 8.10 (Cerulean Leopard)
- Plesk version and microupdate number
- Plesk Obsidian 18.0.76 Update #2 Web Host Edition
Hello,
I’m running Plesk on AlmaLinux 8 (production server with multiple client sites).
Websites use PHP 8.4 via PHP-FPM, but WP-CLI is using the system PHP 7.2
This causes compatibility issues with modern plugins (e.g., WooCommerce).
What is the recommended and safe way to make WP-CLI use PHP 8.4 system-wide without affecting Plesk core components?
Looking for the safest production approach.
Thank you.
I’m running Plesk on AlmaLinux 8 (production server with multiple client sites).
Websites use PHP 8.4 via PHP-FPM, but WP-CLI is using the system PHP 7.2
Bash:
php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.
This causes compatibility issues with modern plugins (e.g., WooCommerce).
What is the recommended and safe way to make WP-CLI use PHP 8.4 system-wide without affecting Plesk core components?
- update-alternatives?
- WP_CLI_PHP environment variable?
- symlink change?
- Plesk-specific method?
Looking for the safest production approach.
Thank you.