• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Question Git WebHook calls composer install w/ wrong php version

bomas

New Pleskian
Server operating system version
Ubuntu 22.04 x86_64
Plesk version and microupdate number
Plesk Obsidian 18.0.75.0 Build date: 2026/01/02 11:00 Revision: 801e61a105f5d0cc9331ee8f33e76e4c2f4121e9
Hi,

I have a Laravel project that was originally started with php8.3. We have now updated to php8.5.

We use the Laravel Toolkit and the git auto-deploy function in our Plesk domain. I have already set the PHP version to 8.5 there, but the auto-deploy has not been working since then.

This is confirmed when you click on “Deploy now” in git.
There you can see that the step “Additional deployment actions are being performed” aborts with the error:

> “Composer detected issues in your platform: Your Composer dependencies require a PHP version ”>= 8.5.0“. You are running 8.3.30."

When I log in with my Plesk user via SSH and run “php -v”, I even get php8.1 on the CLI.
Via Plesk -> SSH Terminal, I am the user “app” and when I run “php -v”, my selected php8.5 version is displayed.

When I run “composer install” via the Laravel Toolkit, it completes without error. (Apparently, my selected php8.5 version is also used here).

Since the sequence of a “deploy” is:
Commit -> triggers “post_receive” hook from git repo -> finds web-hook line -> calls web-hook.php -> “blackbox magic” -> "additional deployment actions" -> ... -> done
I suspect that somewhere in web-hook.php (which is unfortunately encrypted), the composer install command is called. However, it is called with the wrong php8.3 version.

Unfortunately, I haven't found a single way to influence this, but since the default php8.1 version isn't being used, the information that php8.3 must be used for this must be coming from somewhere.

Can anyone tell me where this information comes from? How can I change it?
I can't be the first person who wants to provide a current PHP version with their existing Laravel via Plesk, right?

Thank you in advance,
Best regards,
Thomas
 
Back
Top