# PHP alias per domain

**Project:** Servers | **Board:** In progress | **Votes:** 30
**URL:** https://roadmap.ploi.io/projects/1-server-level-requests/items/33-php-alias-per-domain

---

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.

---

## Comments

**Dennis** (2023-09-05T16:23:14+00:00):
Is this still something people like to see? Let me know! 🙌

**Dennis** (2023-09-05T17:02:43+00:00):
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** (2023-09-06T08:13:50+00:00):
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.

**bkeeper** (2023-12-03T05:46:15+00:00):
Would be great! +1

