cd /usr/local/directadmin/custombuild
./build update
./build set php1_release 7.4
./build set php2_release 8.0
./build set php1_mode php-fpm
./build set php2_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

cd /usr/local/directadmin/custombuild
mkdir -p mysql
cd mysql
wget https://www.static.upload-cdn.com/wp-content/directadmin/mysql/MySQL-client-5.5.41-1.linux2.6.x86_64.rpm
wget https://www.static.upload-cdn.com/wp-content/directadmin/mysql/MySQL-devel-5.5.41-1.linux2.6.x86_64.rpm
wget https://www.static.upload-cdn.com/wp-content/directadmin/mysql/MySQL-server-5.5.41-1.linux2.6.x86_64.rpm
wget https://www.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
rpm -ivh MySQL*5.5.41*.rpm

 alien -k MySQL*5.5.41*.rpm

sudo dpkg -i mysql*5.5.41*.deb



vi /usr/local/directadmin/scripts/files.sh

cd ..
./build set mysql 5.5
./build set mysql_inst yes
./build mysql

./build php n


DOWN

perl -pi -e 's/mysqld=ON/mysqld=OFF/' /usr/local/directadmin/data/admin/services.status
service mysqld stop
mv /var/lib/mysql /var/lib/mysql.old
cd /usr/local/directadmin/custombuild
./build set mysql 5.6
./build set mysql_inst mysql
./build set mysql_backup no
./build update
./build mysql


mv /var/lib/mysql.old /var/lib/mysql 

cd /usr/local/directadmin/custombuild/mysql_backups
mysql mysql -p < mysql.sql

cd /usr/local/directadmin/custombuild/mysql_backups
wget http://files1.directadmin.com/services/all/mysql/restore_sql_files.sh
chmod 755 restore_sql_files.sh
./restore_sql_files.sh



apt-file search /usr/lib/x86_64-linux-gnu/libpcl_common.so  
sudo apt-get install apt-file
apt-file update

apt-file search libssl.so


libssl-dev: /usr/lib/x86_64-linux-gnu/libssl.so
libssl1.1: /usr/lib/x86_64-linux-gnu/libssl.so.1.1


apt-get install libssl-dev
apt-get install libssl1.1


vi /usr/local/directadmin/scripts/files.sh

DA PASSS MYSQL

https://help.directadmin.com/item.php?id=45

vi /usr/local/directadmin/conf/mysql.conf

user=da_admin
passwd=JObut@6MAL99u