• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved Wrong php version in root bash

Jürgen_T

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