• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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.

Resolved Composer and Plesk Obsidian

Jürgen_T

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