Devilbox different PHP versions per project

Hello everyone!

I wrote this article for different php version per project in devilbox.
Used version: Devilbox v3.0.0-beta-0.3 (2023-01-02)

Resource: https://github.com/cytopia/devilbox/pull/942

First:

# Enable all PHP versions
cp compose/docker-compose.override.yml-php-multi.yml docker-compose.override.yml
# Start default set and php80
docker-compose up php httpd bind php74
PHP VersionHostnameIP address
5.4php54172.16.238.201
5.5php55172.16.238.202
5.6php56172.16.238.203
7.0php70172.16.238.204
7.1php71172.16.238.205
7.2php72172.16.238.206
7.3php73172.16.238.207
7.4php74172.16.238.208
8.0php80172.16.238.209
8.1php81172.16.238.210
8.2php82172.16.238.211
Available PHP versions and hostnames

Second: Create backend.cfg file in your project directory

<your-devilbox-dir>\data\www\<your-php7.4-project-dir>\.devilbox\backend.cfg

conf:phpfpm:tcp:php74:9000

Final: restart containers.

Test

<your-devilbox-dir>\data\www\<your-php7.4-project-dir>\htdocs\index.php

<?php
phpinfo();

Visit: http://<your-php7.4-project-dir>.dvl.to/

I hope, useful for everyone!