• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Composer and Plesk Obsidian

Kulturmensch

Regular Pleskian
I installed Drupal 8 in domain/httpdocs using composer as provided by Plesk but from the command line in the bash. This works fine and after finishing the installation I could switch to Pleks to control the composer.json file using the Plesk command in Websites & Domains/PHP Composer.

But as composer installs the index.php in a subdirectory of the webspace I had to set a docroot to this new directory. This works also fine and Drupal is up and running.

However, now I cannot adjust the "composer php command" as provided by the plesk UI (Websites & Domains/PHP Composer) to search for the right composer.json in the new docroot. As it does not find the original json it ask for changing the path to the new directory but shows as preselection of only directories to search from the status before without the new subdirectory.
Question: How can I modify the Plesk UI composer to find the composer.json in a new subdirectory of the original webroot?

 
Hi @Kulturmensch,

If I understand you correctly, your composer.json is located out of the domain's document root (it's located in the upper-level directory) and when you try to scan the domain to find necessary composer.json, it can't be found, am I right?
If so, then this is a kind of software issue (EXTPHPCOMP-71) that we are going to improve in the nearest PHP Composer update.
For now, you can switch the document-root to the folder where composer.json is located, scan the domain to find necessary composer.json and then switch the document root to subfolder.
 
Last edited:
Hi @dash, thank you for your recommendation. You are right, that's exactly my issue. Currently I am using composer-commands in the bash what works fine. This is easier as to switch between web- and docroot for me. From a convenient point of view I would prefer to do at least the composer-update-commands via the plesk management-ui. So I will wait until I can select the composer.json in Plesk which I need in one of the next updates:) of Plesk/composer
 
Thank you again, unfortunately I did not succeed with your proposal as the directory - once found with the process you have proposed - did not remain as selectable.
 
Back
Top