Usually you want to switch PHP version for FPM/Cronjobs/Queue workers at the same time, since the app would break otherwise. Currently you need to manually update the Cronjob and edit the Supervisor config for that.

Since we already have aliases for PHP versions, I think it would be great to have aliases for each Domain (e.g. php-example-domain-com), which will be used for everything configured on Website level. You can than easily swap the version everywhere with one click.

· · Edited
·

Is this still something people like to see? Let me know! 🙌

1 total vote
· · Edited
·

Yes, looking forward to it!

1 total vote
·
·

Would be nice.

no votes yet
·
·

Reason I'm asking is because there's already the {SITE_PHP} variable available that always returns php8.1 for example, which basically solves this?

no votes yet
·
·

But {SITE_PHP} is only available in the Deployment Script and not while setting up a cronjob or Queue for example. Or am I mistaken about that?

It would be great if you could do for example

php-my-site artisan queue:work

which will use the correct PHP version after changing the PHP version of the site.

no votes yet
·
·

Ah, yes, I understand!

no votes yet
·
·

Would be great! +1

no votes yet

PHP alias per domain

30 total votes
Quick Actions
Activity
View recent activity and updates
Use arrow keys to navigate