New DirectAdmin Prepare

nano /etc/hosts

nano /etc/hostname

systemctl stop systemd-resolved

systemctl disable systemd-resolved

rm /etc/resolv.conf

nano /etc/resolv.conf

# Using Google's and Cloudflare's public DNS servers
nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 2001:4860:4860::8888
nameserver 2606:4700:4700::1111
* Save and exit

chattr +i /etc/resolv.conf


* Create SWAP if needed

fallocate -l 16G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

nano /etc/fstab
# Add this line at the end:
/swapfile swap swap defaults 0 0
# Save and exit

nano /etc/sysctl.conf
# Add or modify this line:
vm.swappiness = 10
# Save and exit

* Check if IPv6 is disabled, enable it only if your server has an ipv6 public ip

nano /etc/sysctl.conf
# Add or modify this line:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
# Save and exit



reboot

apt update && apt upgrade -y


bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'auto'

export DA_EMAIL=webmaster@yourdomain.com
export DA_NS1=ns1.yourdomain.com
export DA_NS2=ns2.yourdomain.com
export DA_HOSTNAME="server.yourdomain.com"
export DA_UNIT=yes
export DA_WEBSERVER=nginx_apache
export DA_CHANNEL=stable

bash <(curl -fsSL https://download.directadmin.com/setup.sh) 'Provided license key should go here'


* Do not reboot !

* Login to DirectAdmin panel to see the background process until it is finished


/usr/local/directadmin/directadmin config-set diradmin_envelope info@server-root-domain.com


* Set php limit;

nano /usr/local/php74/lib/php.conf.d/90-custom.ini



Add the following limits to the file

max_execution_time = 300
max_input_time = -1
max_input_vars = 30000
memory_limit = 768M
post_max_size = 512M
upload_max_filesize = 1000M



* DKIM for hostname

cd /etc/virtual/

mkdir server.yourdomain.com

/usr/local/directadmin/scripts/hostname.sh server.yourdomain.com


cd /usr/local/directadmin/scripts

./dkim_create.sh server.yourdomain.com



* find the DKIM file in /etc/virtual/server.yourdomain.com/dkim.public.key


da config-set one_click_webmail_login 1



nano /etc/aliases



root: webmaster@server-root-domain.com


newaliases




Admin Tools > Customize Evolution Skin > Layout > Dashboard Mode > Menu




Post a Comment