I have tried the method from the first link, but compiling it requires php-dev, or lsphp81-dev in this case. But when I install lsphp81-dev from the package manager, it again installs php 8.1.2-1ubuntu2.8. I can't seem to be able to switch back to lsphp81 after that.
Is there another way to...