Hello Everyone,
I;m using cPanel for about 15 years, and migrate to DA Panel a few days ago,
The DA panel install by DA supoort team,
After I've restored all of my cPanel backup to DA Panel... Everythings Messed!
Learning a lot DA panel as a NEWBIE and not even sleep for 2-3 days.
Set it back all of the configiration settings,
Review it again more and more times...
Enable Let's Encrypt and Install SSL for host server and all of myDomain,
Restart DirectAdmin:
cd /usr/local/directadmin/scripts
echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue; /usr/local/directadmin/dataskq d2000
cd /usr/local/directadmin/conf/
nano directadmin.conf
cd /usr/local/directadmin
service directadmin restart
#and make sure to Setup Wildcard SSL in Directadmin with dns_ttl=1
#This feature is only available in the Evolution Skin as of November 2020. You may access it via the User level Dashboard > Account Manager > SSL Certificates.
#Add the /.well-known Alias:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
./build update
./build letsencrypt
/usr/local/directadmin/data/admin/
nano dnsprovider.conf
#Automatically set up Let's Encrypt SSL for all domains that do not currently have a certificate
cd /root
wget -O autoletsencrypt.sh http://files.directadmin.com/services/all/letsencrypt/autoletsencrypt.sh
chmod 755 autoletsencrypt.sh
service directadmin restart
./autoletsencrypt.sh
#Enforcing ssl=ON for all Users, Resellers and their packages
#First, we'll setup the enforcement for actions in
nano /usr/local/directadmin/scripts/custom/package_write_pre/enforce_ssl.sh
#Insert this code
#!/bin/sh
if [ "${ssl}" = "OFF" ]; then
echo "SSL must be enabled";
exit 1;
fi
exit 0;
#Account creation/modification
#Create both:
#Mode #1
nano /usr/local/directadmin/scripts/custom/user_create_pre/enforce_ssl.sh
Insert the code:
!/bin/sh
if [ "${ssl}" = "OFF" ]; then
echo "SSL must be enabled";
exit 1;
fi
exit 0;
Mod #1
nano /usr/local/directadmin/scripts/custom/user_modify_pre/enforce_ssl.sh
Insert the code:
#!/bin/sh
if [ "${ssl}" = "OFF" ]; then
echo "SSL must be enabled";
exit 1;
fi
exit 0;
#Chmod all scripts to 755:
chmod 755 /usr/local/directadmin/scripts/custom/*/enforce_ssl.sh
cd /usr/local/directadmin/scripts
echo "action=directadmin&value=restart" >> /usr/local/directadmin/data/task.queue; /usr/local/directadmin/dataskq d2000
./letsencrypt.sh request srv8.jsalfianmarketing.com,mail.srv8.jsalfianmarketing.com,smtp.srv8.jsalfianmarketing.com,www.srv8.jsalfianmarketing.com,srv8.jsalfianmarketing.com 4096
GOTCHA...
Finally! all of my websites inluding host main server Secured!
Thank you for all of your support. advice and inspiration...
Much apprecuated!
Best Regards,
Jerry Salfian