Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
Hi @twc8ac35a8636,
The Droplet itself should be secured enough. To make sure it keeps that way, you’ll need to at least once a week do updates:
- apt update
- apt upgrade
Why does does it install Ubuntu 20.04.5 LTS and not Ubuntu 22.04.1 LTS? Should I upgrade to Ubuntu 22.04.1 LTS? Are there benefits? Speed? Security?
The image itself seems to haven’t been updated to the 22.04 Ubuntu release. At this point, it’s fine staying with 20.04 but you’ll need to at some point upgrade to 22.04 so it might be better now rather than later. As for benefits, it’s always better to go to the next release, what comes to mind for me is the Kernel as on 22.04 it’s newer but there are a lot more improvements which you can read about.
Should any additional Fail2Ban filters be enabled? Currently only have the defaults are enabled -
I’m personally not a fan of Fail2Ban when it’s not configured by someone with a lot of experience with it. Fail2Ban can start banning legitimate requests if not configured properly so it’s always better to be careful around it. Additionally, it can cause a load on your system so really be careful.
What you already have should be sufficient for now.
Would you recommend renaming the WordPress admin login wp-login.php? This would make the wordpress-hard and wordpress-soft filters redundant?
Yes and no, it’s good to rename it with a plugin just so that it’s not so easily discoverable however most exploits do not come from wp-login but from outdated software.
` Is the WordFence plugin overkill?
Would I be right in thinking mod_security isn’t needed because UFW is enabled? `
WordFence won’t be overkill. Mod_security on the other hand with fail2ban wordfence and so on would be.
Be careful not to add to much firewalls and Security stuff as at some point when something breaks you won’t be able to figure out from where and why.
When it comes to file permissions I followed part of this guide so WordPress can automatically update via www-data - https://devanswers.co/configure-sftp-web-server-document-root/
That’s fine.
Regarding the Apache workers, if you can’t find them they are set to the default values. You can increase them by adding them to Apache’s main config file but Don’t increase them too much as it might come heavy for you Droplet.
Regarding other improvements, what I can recommend is to change your Apache MPM module from prefork to event and install php-fpm. It will greatly increase your experience.
Hello there,
I will personally recommend making sure that a SWAP space is added on the droplet and that the MySQL database is optimized and there is caching (either a cache plugin or server-level caching like redis)
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04
If the database is huge in size or generally busy with requests you can use the MySQL tuner script to optimize the database performance
We have a tutorial on how to optimize WordPress on Ubuntu 20.04 which you can check here
https://www.digitalocean.com/community/tutorials/how-to-optimize-wordpress-on-ubuntu-20-04
Another really useful article
Hope that this helps!