Amadex
August 22, 2020, 8:35pm
1
This is my setup (tips) for 1G of RAM servers.
Install clean Ubuntu 20.04 LTS and do apt-get update, apt -get upgrade
Set FQDN hostname with hostnamectl, and timezone with timedatectl
Make sure that you have 1G of SWAP memory via free -h, if not google how to create it
Download HestiaCP installer script
Install it without ClamAV, and with MultiPHP:
sudo bash hst-install.sh --apache yes --nginx yes --phpfpm yes --multiphp yes --vsftpd yes --proftpd no --named yes --mysql yes --postgresql no --exim yes --dovecot yes --clamav no --spamassassin yes --iptables yes --fail2ban yes --quota no --api yes --force no --interactive yes --port 8083 --hostname server.domain.com --email [email protected] --password password123 --lang en
Reboot
Login into ssh and do: v-add-letsencrypt-host (this will add SSL to your hostname)
Install Ubuntu Livepatch for rebootless kernel update - view how
Login into panel, add domain, dns child-ns for ns1 ns2, tweak php upload limits etc.
2 Likes
Why Ubuntu and not debian?
I suggest CSF is much better at protecting services than fali2ban but I haven’t tested the memory overheads of each, to compare.
Bigger memory optimisation can be achieved by using a small mysql my.cnf template (example: /usr/share/mysql/my-medium.cnf) and Apache tuning. Some might argue for/against the inclusion of nginx and whether better to use it without Apache. Named, is also optional if external nameservers are being used.
Amadex
August 22, 2020, 10:54pm
3
Obviously we have different tastes.
Taste doesn’t come into it and is not obvious at all.
Your thread doesn’t explain your choices; yours appear to be arbitrary, to me.
Amadex
August 22, 2020, 11:29pm
5
I was bored and wanted to write something until my movie downloads.
Ahh, that explains it!
Made me look at memory consumption on my 1GB boxes though.
1 Like
With very minor tweaking and with fail2ban, bind & CSF:
vm.swappiness = 1
debian@ru:~$ free -m
total used free shared buff/cache available
Mem: 989 266 95 19 627 542
Swap: 1019 0 1019
Amadex
August 23, 2020, 12:11am
8
I’ve set swappiness to 30. The default is 60 on Ubuntu.