sudo apt-get install -y alien
cd /usr/local/directadmin/custombuild
./build update
./build set mysql 5.5
./build set mysql_inst yes
mkdir -p mysql
cd mysql
wget https://static.upload-cdn.com/wp-content/directadmin/mysql/MySQL-client-5.5.41-1.linux2.6.x86_64.rpm
wget https://static.upload-cdn.com/wp-content/directadmin/mysql/MySQL-devel-5.5.41-1.linux2.6.x86_64.rpm
wget https://static.upload-cdn.com/wp-content/directadmin/mysql/MySQL-server-5.5.41-1.linux2.6.x86_64.rpm
wget https://static.upload-cdn.com/wp-content/directadmin/mysql/MySQL-shared-5.5.41-1.linux2.6.x86_64.rpm
rpm -e --noscripts `rpm -qa | grep MariaDB`
cd mysql
alien -k MySQL*5.5.41*.rpm
sudo dpkg -i mysql*5.5.41*.deb
cd /usr/local/directadmin/custombuild
./build update
./build set php1_release 7.1
./build set php2_release 7.4.
./build set php3_release 8.0
./build set php1_mode php-fpm
./build set php2_mode php-fpm
./build set php3_mode php-fpm
./build set opcache yes
./build opcache
./build set webserver nginx_apache
./build nginx_apache
./build rewrite_confs
echo "action=rewrite&value=nginx" >> /usr/local/directadmin/data/task.queue
echo "action=rewrite&value=nginx" >> /usr/local/directadmin/dataskq
cd /usr/local/directadmin
echo "action=directadmin&value=restart" >> data/task.queue; ./dataskq d2000
./build clean
./build suphp
./build roundcube
./build squirrelmail
./build phpmyadmin
./build set ioncube yes
./build ioncube
./build rewrite_confs
echo max_username_length=14 >> /usr/local/directadmin/conf/directadmin.conf
echo check_subdomain_owner=0 >> /usr/local/directadmin/conf/directadmin.conf
service directadmin restart
cd /usr/local/directadmin
echo "action=directadmin&value=restart" >> data/task.queue; ./dataskq d2000
cd /usr/local/directadmin/custombuild
./build mysql
./build php n
./build rewrite_confs
echo application/x-zst zst >> /etc/mime.types
service directadmin restart