Dennis Koch
In progress

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.

Dennis
Dennis · · Edited

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

Ivo Pereira
Ivo Pereira · · Edited

Yes, looking forward to it!

Anthony Morales
Anthony Morales ·

Would be nice.

Dennis
Dennis ·

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?

Julius Kiekbusch
Julius Kiekbusch ·

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.

Dennis
Dennis ·

Ah, yes, I understand!

bkeeper
bkeeper ·

Would be great! +1

PHP alias per domain

30 total votes
  • Dennis moved item to board In progress

    2 weeks ago
  • Dennis moved item to board Planned

    4 years ago
  • Dennis moved item to project Server Level Requests

    4 years ago
  • Dennis Koch opened

    4 years ago
Quick Actions
Activity
View recent activity and updates
Use arrow keys to navigate