Conversation
|
Merry Christmas @cytopia, and thanks for this gift ! One little question, about hostnames : is it a typo when you write the same hostname for PHP versions, or expected results ?
|
Thanks and fixed :-) |
|
Now also showing the configured Backend on the vhosts.php page in the intranet. |
|
So much awesome, thank you |
|
The box is cool Thanks for sharing this fantastic work ! |
|
@cytopia Nice work, but its possible to add a function so its only starts the PHP versions there are in use with "docker-compose up -d" ? |
|
I am trying to setup multiple php versions. But it is giving "File not found" error in browser when I setup a project with specific php version e.g php81. I have added backend.cfg for the project like below.
Any idea what I am doing wrong? |
|
@zulfiqarpk92 Can you please provide where you put the file as well the file name? Also, provide a screenshot of Vhost in Devilbox localhost. Make sure you restart the Devilbox again. sometimes it does not take the first restart. |
|
@vikas5914 I have placed the file in
Screenshot for Vhosts:
I have restarted several times but no luck. Thanks |
1 similar comment
|
@vikas5914 I have placed the file in
Screenshot for Vhosts:
I have restarted several times but no luck. Thanks |
|
@zulfiqarpk92 Can you try |
|
@vikas5914 I found the issue. It was not the IP. Actually, I have my projects placed in a separate directory and created vhosts using soft links in the dvlbox data/www directory. In main compose file I had mounted the projects directory but not in the other php containers that's why it was giving file not found error. It started working after adding volumes to the php containers. Thanks |
|
Be really careful with the "/shared/httpd//.devilbox/backend.cfg" file to NOT LEAVE BLANK LINE at the end of the file. Else default php run and Devilbox Comand & Control "watcherd stderr" said : |
|
Hello, I am interested in something in particular. If I have two projects in their respective directories of my windows (Host OS)... Is it possible to mount these projects as if they were volumes and that both use the same php7.4 to save resources? |


Release v3.0.0-beta-0.1 (2022-12-24) 🎅🎄🎁
Run different PHP versions per project
Reverse Proxy automation
Please report issues in this PR or reach out in Discord.
This is a beta release, using a completely rewritten set of HTTPD server, based on these changes:
Once it has been tested by the community, and potential errors have been addressed, a new major version will be released.
IMPORTANT: This release required you to copy
env-exampleover onto.envdue to some changes in variables.TL;DR
Here is an example to run one project with a specific PHP version
/shared/httpd/<project>/.devilbox/backend.cfgHere is an example to proxy one project to a backend service (e.g. NodeJS or Python application, which runs in the PHP container on port 3000)
file:
/shared/httpd/<project>/.devilbox/backend.cfgPHP hostnames and IP addresses
Note: Use IP addresses instead of hostnames for Nginx
### ImportantCurrently the Intranet Command and Control Center is not yet self sufficient as it requires a supervisord configuration file.In the root of the Devilbox repository, addsupervisorctl.confintosupervisor/directory. Important: It must have this name.ini~~ ~~[supervisorctl]~~ ~~serverurl=http://httpd:9001~~ ~~username=supervisord~~ ~~password=mypassword~~ ~~Fixed
mod_proxy_htmlin Apache 2.4 as per requirement fromvhost-genfor Reverse Proxy setupmod_xml2encmodule (Required bymod_proxy_html)Added
DEVILBOX_HTTPD_MGMT_PASSDEVILBOX_HTTPD_MGMT_USERdocker-compose.override.yml-php-multi.yml(allows to run multiple PHP versions).Changed
psrextension by default php-psr #78phalconextension by defaultDEBUG_COMPOSE_ENTRYPOINTrenamed toDEBUG_ENTRYPOINTHTTPD_TIMEOUT_TO_PHP_FPMrenamed toHTTPD_BACKEND_TIMEOUT