I can confirm that the reply by jdrews on August 07, 2025 works to install the latest PHP 8.1, 8.2 & 8.3 versions. I have servers on AlmaLinux 8 and RockLinux 8 and this works for both these operating systems.

There was a typo in the file name which I have corrected in the steps below:
- Start the build process via the UI
- in a terminal window to the server, cd to /usr/local/src
- copy the php-build.sh to some place else (don't delete, just cp)
- once the build process completes (and fails), on a terminal window
- cd /usr/local/src
- cp php-build.sh to the /usr/local/src directory (since the UI build process removes it)
- now do a "sh php-build.sh"
I personally used the File Manager to copy and later move the file and only used the terminal window to:
cd /usr/local/src
sh php-build.sh