• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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