• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue PHP Composer only works for super user, other users get 'phpenv: composer: command not found'

carlbowles

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
18.0.72 #1
I can run composer fine from the superuser account.

From any other account I get the following error message:

phpenv: composer: command not found

I'm guessing it's some sort of permissions issue or something, but I don't have a clue how to fix this.
 
What's the exact command you're trying to run?
All commands come back with this error, even just the 'composer' command.

If I try to run the composer update "drupal/core-*" --with-all-dependencies with the super user account it works fine, with my other plesk account if I run this command then it comes back with the error.
 
The composer command is only available to users with Superuser privileges. For other (system) users you can use Composer via the Composer Plesk extension. Which can be run via command line using to following command example /opt/plesk/php/X.X/bin/php /usr/lib/plesk-9.0/composer.phar [options] [arguments]. Where you'd replace the X.X for any of the installed PHP versions (e.g 8.3 or 7.4).

The Composer Plesk extension also allows you to perform certain composer task via the Plesk GUI directly. Like for example updates.

Also see support article about running composer.
 
The composer command is only available to users with Superuser privileges. For other (system) users you can use Composer via the Composer Plesk extension. Which can be run via command line using to following command example /opt/plesk/php/X.X/bin/php /usr/lib/plesk-9.0/composer.phar [options] [arguments]. Where you'd replace the X.X for any of the installed PHP versions (e.g 8.3 or 7.4).

The Composer Plesk extension also allows you to perform certain composer task via the Plesk GUI directly. Like for example updates.

Also see support article about running composer.
Thank you, I'll have a look at the Composer extension!
 
Back
Top