Articles in this section

How to install PHP dependencies using Composer in Plesk Onyx?

kb: how-to Plesk Onyx for Linux ABT: Group A

Applicable to:

  • Plesk Onyx for Linux

Question

How to install PHP dependencies using Composer in Plesk Onyx?

Answer

  1. Login to Plesk
  2. Go to Domains > example.com > Applications and click Scan:
    mceclip2.png

     

    Plesk will identify each composer.json  located within httpdocs folder of the current domain as a separate application.

  3. To install PHP dependencies, click on each application where there is composer.json file
    mceclip0.png
  4. Click Install Dependencies:
    mceclip3.png

 

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.