Bobcares

PHP Composer extension is not accessible in Plesk

by | Feb 6, 2022

Wondering how resolve PHP Composer extension is not accessible in Plesk? We can help you.

At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.

Let’s take a look at how our Support Team help a customer  deal with this Plesk error.

How resolve PHP Composer extension is not accessible in Plesk?

Usually, when accessing Plesk > Domains > example.com > PHP Composer page, the following error message is displayed:

Could not update the integration plugin
Changed current directory to /var/www/vhosts/example.com/.composer
[InvalidArgumentException]
Package plesk/composer-command-info at version ~1.0.2 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer versionCopy Code

Issue occurs if the older version of Composer is used by default despite Composer was updated to v2.0:

composer --version
Composer version 2.0-devCopy Code

Today, let us see the steps followed by our Support Techs to resolve it:

1. Firstly, log into Plesk.

2. Then, go to Extenions > My Extensions > Panel.ini Editor > Open.

Note: If Panel.ini Editor extension is not installed, install it from the Extensions menu in Plesk.

3. Then, switch to the Editor tab.

4. Finally, specify the Composer and plugin versions by adding the lines below at the end of the file as below:

[ext-composer]
commandInfoPluginVersion = "~1.1.0"
composerVersion = '2'Copy Code

Solution via CLI

1.Firstly, connect to a Plesk server via SSH.
2.Then, check panel.ini file availability:

ls -l /usr/local/psa/admin/conf/panel.iniCopy Code

If the file

/usr/local/psa/admin/conf/panel.iniCopy Code
does not exist or is empty, create it by copying the sample configuration file /usr/local/psa/admin/conf/panel.ini:

cp /usr/local/psa/admin/conf/panel.ini.sample /usr/local/psa/admin/conf/panel.iniCopy Code

3. Open

/usr/local/psa/admin/conf/panel.iniCopy Code
file via any text editor, for example, vi text editor:

vi /usr/local/psa/admin/conf/panel.iniCopy Code

4.Next, specify the required composer and plugin versions by adding lines below to the end of the file:

[ext-composer]
commandInfoPluginVersion = "~1.1.0"
composerVersion = '2'Copy Code

5.Finally, save the changes and close the file.

[Need a solution to another query? We are just a click away.]

Conclusion

Today, we saw steps followed by our Support Engineers to resolve PHP Composer extension is not accessible in Plesk

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Speed issues driving customers away?
We’ve got your back!