• 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 I can't log in: Composer detected

musghs

New Pleskian
Server operating system version
CentOS Linux 7
Plesk version and microupdate number
18.0.50
Hi,
Since this morning I can no longer access the system. This error comes out:
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2".

I tried from SSH the following commands but nothing:
/opt/plesk/php/8.1/bin/php /usr/lib64/plesk-9.0/composer.phar install

Response:
Composer could not find a composer.json file in /root
To initialize a project, please create a composer.json file. See Basic usage - Composer
 
if I run the command:
plesk bin extension --disable monitoring
Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.33.
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.33. in /usr/local/psa/admin/plib/vendor/composer/platform_check.php on line 24
exit status 255
 
For now, I am using a work around that at least grants me access to the web interface again:

1. Disable composer
plesk bin extension --disable composer

2. Restart plesk (see plesk docs)
service sw-engine restart && service sw-cp-server restart
 
In our case it was a Plesk component that updated called "catalog" with a minimum requirement not met by our older Plesk version.

A work around for this is to edit: /opt/psa/admin/plib/modules/catalog/vendor/composer/platform_check.php

if (!(PHP_VERSION_ID >= 70400)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
}

Reducing the version requirement gets the panel to load again - but be warned this is unsupported hackery and that requirement is most likely intentional.
 
Hi, I'm logging today, 15 June 2023, Plesk Obsidian 18.0.41 and I get the error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2".

I tried the: plesk bin extension --disable monitoring

And it didn't work. Also trying to disable composer and it says it's not installed. Can I get some help?
 
Back
Top