I’m thinking of moving from shared hosting, to digitalocean (LAMP on Ubuntu), and found this is nowhere like what shared hosting is, where everything else is taken care of for you and you simply upload your site and it’s running.
While you guys have quite a few great articles on how to set things up, I think there need to be more article on how to secure your new server. Starting from all that needs to be secured / done for the OS, to MySql and PHP and everything else. Obviously, the default installation will be insecure with lots of stuff left open (I assume).
I did look around your help files, but could not find anything concrete on securing a server. I hope you can point me to content on securing a Ubuntu based installation, or if you guys haven’t written anything this far, I hope someone will. Or, it’d be nice If you could post info here itself.
Thanks,
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.
We have an article on SQL injection here: https://www.digitalocean.com/community/articles/how-to-secure-a-cloud-server-against-sql-injection
We have an article on SQL injection here: https://www.digitalocean.com/community/articles/how-to-secure-a-cloud-server-against-sql-injection
Great tips, Kamal. Thanks a lot. <br> <br>isn’t there an article covers up all security issues, or at least the major matters such as ddos attack, sql injunction, Sensitive Data Tracking and so on…?
Thanks for those links.
We have a plethora of articles on securing droplets: <a href=“https://www.digitalocean.com/community/community_tags/security”>https://www.digitalocean.com/community/community_tags/security</a>. <br> <br>The most important topics you would want to follow are: <br>- Firewall: <a href=“https://www.digitalocean.com/community/articles/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server”>https://www.digitalocean.com/community/articles/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server</a>. <br>- fail2ban: <a href=“https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-fail2ban-on-ubuntu-12-04”>https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-fail2ban-on-ubuntu-12-04</a>. <br> <br>Make sure you also follow <a href=“https://www.digitalocean.com/community/articles/initial-server-setup-with-ubuntu-12-04”>https://www.digitalocean.com/community/articles/initial-server-setup-with-ubuntu-12-04</a> after creating an Ubuntu droplet.
Good tips, Kamal. Thanks again.