Skip to content
Discussion options

You must be logged in to vote

If you have multiple versions of PHP installed then you can build a php-version.unit.so for each version you want, unit will load all these at runtime.

Basically you'd

$ ./configure php --module=php-version --config=/path/to/php-config --lib-path=/path/to/php_lib_dir
$ make && make install

for each version you wish to build support for, where php-version is like php-8.4 which would create a php-8.4.unit.so DSO.

Then in your unit config you'd reference these versions via the application.name.type setting where each type would be something like php 8.4, php 7.2 etc

The /status/modules endpoint can be used to see what language modules unit has loaded

E.g.

$ curl --unix-socket /opt/unit/contr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@petecooper
Comment options

Answer selected by petecooper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants