• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Question Drupal CMS 1.0 with Plesk: Composer PATH issue for automatic updates

Passivism

New Pleskian
Server operating system version
Ubuntu 22.04.5
Plesk version and microupdate number
18.0.66 #2
Hi everyone,

With the recent WordPress news and the release of Drupal CMS 1.0, we've been exploring this new tool as an alternative. I'd like to share our experience and get some help with a specific issue.

Initial setup worked smoothly:
  1. Created a new subdomain in Plesk
  2. Uploaded the cms-1.0.0.zip content (composer.json + web folder)
  3. Set documentRoot to web/
  4. Ran the initial installation with:

Bash:
su -c "/opt/plesk/php/8.3/bin/php /usr/lib/plesk-9.0/composer.phar install --prefer-dist --no-dev" -s /bin/zsh sysuser_4


However, once in Drupal, the status report shows:

Your site does not pass some readiness checks for automatic updates. It cannot be automatically updated until further action is performed.
  • The composer executable cannot be found. Make sure it's installed and in the $PATH


The interesting part is that when I check the PATH for sysuser_4 (the Plesk system user), composer is definitely there and working:

Bash:
$ su -c "echo $PATH" -s /bin/zsh sysuser_4
/opt/plesk/php/8.3/bin:/usr/lib/plesk-9.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ su -c "which composer" -s /bin/zsh sysuser_4
/usr/lib/plesk-9.0/composer

$ su -c "composer --version" -s /bin/zsh sysuser_4
Composer version 2.8.4 2024-12-11 11:57:47
PHP version 8.3.15 (/opt/plesk/php/8.3/bin/php)

I've tried several approaches:
  • Adding PATH to PHP-FPM configuration
  • Modifying composer.json with explicit paths
  • Adding environment variables in Drupal's settings.php
  • Enabled SSH shell "/usr/bin/bash" in the hosting settings
  • Followed the documentation from "https://support.plesk.com/hc/en-us/...d-Composer-to-a-chrooted-environment-in-Plesk" but when running `./update-chroot.sh --apply domain`, I get "WARNING: Domain does not exist or has no chrooted shell enabled, skipping."

But nothing seems to work.

Has anyone successfully set up Drupal CMS 1.0 with composer recognized in Drupal, especially in a subdomain configuration? How did you handle the composer PATH issue?

Any insights would be greatly appreciated!

Thanks!
 
Is there any particular reason for installing Drupal manually over the Application installer available in Subscriptions > example.com > Applications? I haven't dug deeper into the error you are encountering, but if there's no specific reason for installing it manually, please give a try to the installer as it works perfectly fine (at least on a test Ubuntu 22.04 environment). If that's not a convenient solution, please let us know.
 
Hi!

Thanks for your answer.

Yes, I have a good reason! Only Drupal Core is available in the application installer.
In my use case, I am trying to use the 'Drupal CMS' newly available.
I've tried the latest Drupal Core version with plesk application. It worked correctly but I went through a problem with the GUI for composer update but I think it's another problem and I've not investigated this one.

I've not encountered any problem for the manual installation via CLI, and the website works well. However, the composer binary detection once installed seems stuck when it comes to read the $PATH variable...
As I'm not familiar with chrooted users, I'm trying to identify how the access to composer is working in my subdomain use case.
 
I see that you clarified it is Drupal CMS in the initial message, apologies for the misunderstanding. Could you please try changing the shell to any other than chrooted, then change it back to chrooted and give another go to adding Composer to chrooted environment.
 
Hello everyone,
I have the same problem with my installation of Drupal CMS in conjunction with Plesk (Plesk Obsidian 18.0.67).
Composer is installed and works correctly so far.
In Drupal CMS (Status) I get the message that Composer cannot be found.
As a result, automated updates cannot be carried out.
The Drupal CMS is a customized Drupal 11 installation.
I do not have the problem when installing under DDEV.
I plan to test whether the problem also occurs with a classic Drupal11 installation.
There is no problem with Drupal 10. I have a Drupal10 website running in conjunction with Plesk.
Best regards,
 
Hello everybody here is an other take on this and it works pretty good. At least for my vps server. You will not beleve me if I tell u what the problem actually is. But have fun reading this. Hopefully it fix it for you. Tested it yesterday and it worked perfectly. Let me know if you encounter any issues. We'll figure it out togehther then.

That is neccecary because the Project browser m
 

Attachments

  • Prepare Plesk Obsidian 18.x Update 2 Web Admin Edition for Drupal CMS.pdf
    115 KB · Views: 4
The changes applied in the PDF work for Plesk Plesk Obsidian Web Admin Edition
version 18.0.68 update no. 2

I have tested it several times and I think it's a shame that the developers at the web pros, who earn real money with Plesk, have not yet fixed this bug. Honestly, if I can do it as a normal user, then it will also work in future versions of Plesk without much effort.

Unfortunately, I sent my first comment too early and only realized too late that the text in the PDF was not in English, so I simply replied again below.


Dear web pros, I would be very happy if the next time I install Plesk on a VPS, I find that at least composer 2.8.8 is installed from the start.

At the moment, the standard Plesk image that my web host offers me is one for which he pays you license fees for being allowed to offer the software and charges me money for being allowed to use the software.

Why do I, as a customer, now have to update a Composer executable from the year Composer version 2.2.5 2022-01-21 17:25:52?

Sorry, but as a paying customer, I find this absolutely incomprehensible. But read for yourself. I have now attached the PDF in English for you too.



You can delete the comment above, unfortunately it was sent incomplete because something like this really makes me angry.



Unfortunately, I am new to the forum, so I cannot edit the comment.

Dear forum users, if you want to work with Drupal CMS on a server that has Plesk installed, the changes to the system currently specified in the PDF are unfortunately necessary. Of course, I also talk about setting up Drush in the text



Kind regards
 

Attachments

  • Prepare Plesk Obsidian 18.x Update 2 Web Admin Edition for Drupal CMS en-US.pdf
    97.2 KB · Views: 5
Back
Top