Deploying a production web hosting stack on CentOS 8 with Virtualmin requires modern multi-PHP support (allowing legacy applications to run PHP 5.6 or 7.2 while modern apps run PHP 7.4 or 8.0) and reliable database server management via Remi repositories.
1. Fix Perl UTF-8 Locale Warnings
cat << 'EOF' > /etc/environment
LANGUAGE=en_US.utf8
LC_ALL=en_US.utf-8
LANG=en_US.utf8
LC_TYPE=en_US.utf8
EOF
2. Enable EPEL and Remi Repositories
dnf install epel-release -y
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
dnf module reset php -y
dnf module enable php:remi-7.4 -y
3. Installing Parallel PHP Versions
dnf install php56-php-fpm php72-php-fpm php74-php-fpm php80-php-fpm -y
4. Install Virtualmin
wget http://software.virtualmin.com/gpl/scripts/install.sh
sh install.sh