• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved PHP composer error

antonio.abansys

New Pleskian
Server operating system version
CentOS7
Plesk version and microupdate number
Plesk Obsidian Version 18.0.46
Hi to all,

Im trying to install a composer package but plesk show me this error:

[LIST] [*]Failed to retrieve paths for the installed packages: In PluginManager.php line 744: [*] [*]plesk/composer-command-info (installed globally) contains a Composer plugin [*]which is blocked by your allow-plugins config. You may add it to the list [*]if you consider it safe. [*]You can run "composer global config --no-plugins allow-plugins.plesk/compos [*]er-command-info [true|false]" to enable it (true) or disable it explicitly [*]and suppress this exception (false) [*]See https://getcomposer.org/allow-plugins [*] [/LIST]

When I connect to the server (CentOS 7) and run the command say me that:
Composer 2.3.0 dropped support for PHP <7.2.5 and you are running 5.4.16, please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting
If I run composer self-update --2.2 again repeat the same error.

I searching in forum that I must run on my plesk default installation
/opt/plesk/php/7.4/bin/php /usr/lib64/plesk-9.0/composer.phar global config --no-plugins allow-plugins.plesk/composer-command-info true
But the error persists
I have updated the plesk and the composer plugin.

Im desesperate any knows how to solve that?
 

Attachments

  • error plesk composer.png
    error plesk composer.png
    45.5 KB · Views: 25
Thank you for your answer, I have updated all extensions.

Finally I can solve this with composer 2.0.4 and modifying the Panel.ini
 
@mrad
  1. Go to Extenions > My Extensions > Panel.ini Editor > Open.
  2. Switch to the Editor tab.
  3. Specify the Composer and plugin versions by adding the lines below at the end of the file as below:
Code:
[ext-composer]
composerVersion = '2'
 
Back
Top