Articles in this section

How to install PHP dependencies using Composer in Plesk

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

How to install PHP dependencies using Composer in Plesk?

Answer

  1. Log in to Plesk.
  2. Go to Domains > example.com > Dashboard tab > PHP Composer.

    Note: If the domain is Disabled or Suspended, the button will not appear. 

  3. Click Scan.

    Note: If domain's document root directory has other composer.json files in subdirectories, click the [Change] button to switch between them.

  4. To install PHP dependencies, click Install.
Was this article helpful?

Comments

1 comment
Date Votes
  • Alternative method:

    1. delete composer.lock
    2. add dependecies to composer.json
    3. in plesk let composer install dependecie and rebuild composer.lock
    0

Please sign in to leave a comment.