Installing PHP8.4 in latest Nginx Unit 1.34.2 installation #1582
-
Bug OverviewI installed latest 1.34.2 version in the machine Ubuntu 24.04. It is installing php 8.3 rather than 8.4 I can see PHP8.4 in official docker images. How can I install php8.4 with Unit. Thanks Expected BehaviorPHP 8.4 should work Steps to Reproduce the Bug
Environment Details
Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I Assume this is because Ubuntu 24.04 comes with PHP 8.3
Our language module packages will support the version of PHP that comes with the target distro. If you want to use some other version you will need to build the language module from source, this may also require building the required version of PHP from source. |
Beta Was this translation helpful? Give feedback.
Here's one way to do it, though it's a little involved.
Another way is to just do a normal build from source.
You wouldn't need to do all that, just configure and build unit, don't think it matters how you do it in this case, just a
./configure && make -j4
should do Then you can configure and build the php language module, you probably want to give it a name like php8.4. You may also need to specify the location of the PHP 8.4 config script and libraries E.g.Adjust paths as necessary.
Then if that builds OK, you can copy
build/lib/unit/m…