Optimizing my Server @ 2020
I have a brand new Ubuntu linux distribution on my new 2gb memory VPS (Amazon lightsail).
What should be installed on it for the best experience.
I am defining "best experience" as most secure, speedy and not complicated.
I understand that one comes over the other, so if I want a super secure server, it will be more complicated and the speed might also take a hit.
It goes the other way around also, so if I want a speedy server, I might want to install the web sites over Nginx instead of apache www, I will gain the speed but I will lose something in the process, as my sites work with wordpress and I have several plugins on them which use the htaccess file, i will need to find replacements for them and give over their benefits (security plugins, permalinks, www redirect, https etc).
Another example will be MariaDB which is compatible with mysql but is supposed to be faster, it might complicate things, and because the gain of speed here is really minor, I will keep my sites with mysql.
So without further ado, here come the components requirements
- FTP (ProFtp)
- MySql Client - Adminer
- Apache WWW server
- PHP7 (php-fpm, opcache)
- Server Panel - KeyHelp
- Free SSL (LetsEncrypt)
- MailServer (with antivirus)
- Fail2ban bruteforce protection against FTP & SSH login
- Disable remote sql
- Enable http2 on apache www
Looking at my list, I don't see anything overwhelming it looks like the regular list with some security pointers.
This one will give me a robust, secure and simple configuration though.