The instructions from @jtr are correct. However, if that doesn’t work, try to update to version 25.0.6 first (using ncp-config) and see if that successfully installs PHP 8.1.
In the meantime I’ll test the updater with NC26 and see if it needs fixing