• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Wrong php version in root bash

Kulturmensch

Regular Pleskian
Server operating system version
Ubuntu 20.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian v 18.0.46
If I try to start a script in bash as root in /usr/local/bin the php version of the bash is shown as 7.4.
Some commands of the script are belonging to my domain i.e using "drush" which uses php 8.1 as I am using for the whole domain.

As result I get the error:

PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.3. in /var/www/vhosts/.../vendor/composer/platform_check.php on line 24

Is there any possibility to run a root bash with php 8.1 instead of 7.4 (Plesk Obsidian / Ubuntu 18.0.46)
 
Thank you, this did the trick:) now I use in all different user-bash 's including root-bash the same php version 8.1.

However, the error remains:-( when I use the command drush XY from a root bash but not from the domain user bash (where it works):

PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.3. in /var/www/vhosts/.../vendor/composer/platform_check.php on line 24
Any further idea?
 
Back
Top