Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 17, 2025, 06:57 AM

Title: How to run Composer with Plesk PHP
Post by: Suhitha on Dec 17, 2025, 06:57 AM
Applicable to:




Question

How to run Composer with Plesk PHP?


Answer


Run Composer from Plesk interface

In Plesk Obsidian, Composer is available as a Plesk extension. To learn more about PHP Composer Plesk extension, visit:



Run Composer from a command-line interface

To use composer with Plesk PHP (e.g. to install additional libraries), connect to a Plesk server via SSH (Linux) / RDP (Windows Server) and use the following commands, where X.X is a PHP version:

Warning: Be careful when installing untrusted packages as root/super user. See https://getcomposer.org/root for details.


# /opt/plesk/php/X.X/bin/php /usr/lib64/plesk-9.0/composer.phar [options] [arguments]


# /opt/plesk/php/X.X/bin/php /usr/lib/plesk-9.0/composer.phar [options] [arguments]


c:/> "%plesk_dir%Additional\PleskPHPXX\php.exe" "%plesk_dir%Additional\Composer\composer.phar" [options] [arguments]



Additional Information