kb: fixed
Plesk for Linux
kb: technical
ABT: Group A
Applicable to:
- Plesk for Linux
Question
How to change the path of the composer.json
file in the PHP Composer extension?
Answer
Note: The feature has been implemented in the scope of the #EXTPHPCOMP-71 feature request and it'ss available since 1.0.2 version of PHP Composer. Make sure that the PHP Composer extension is up to date: Install the latest updates for extensions
-
Go to Domains > example.com > PHP Composer > Click [change] > Select the path of the application containing the
composer.json
file > Click Change folder
For composer.json files added after the initial scan
Linux:
-
Connect to the server via SSH
- Run command below in the CLI
# plesk ext composer --application -register -domain example.com -path httpdocs/one.example.com/
- Go to Domains > example.com > PHP Composer Extension > click "Change".
Windows:
-
Connect to the server via RDP
- Run command below in the CLI
C:\> plesk ext composer --application -register -domain example.com -path httpdocs/one.example.com/
- Go to Domains > example.com > PHP Composer Extension > click "Change".
Comments
2 comments
Hi Stefan
How can I remove a path from composer?
Due to #EXTPLESK-4427 it can't be done for now.
Hence you can instead remove/edit application in `Applications` table of /usr/local/psa/var/modules/composer/composer.sqlite3
You can follow https://docs.plesk.com/release-notes/obsidian/change-log/ to get informed once #EXTPLESK-4427 is resolved.
Please sign in to leave a comment.