Install PHP 8 on DirectAdmin

cd /usr/local/directadmin/custombuild
nano options.conf
php2_release=8.0
php2_mode=php-fpm

If php2 is already using another PHP version, you can use php3 or php4.

./build update
./build php n

It is always worth securing PHP after enabling a new version. You can do so by following this guide.