How do you secure your new server?

February 10, 2014 12.1k views
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,
5 Answers
We have an article on SQL injection here:
by Zack Brown
Protect your VPS. An SQL injection takes advantage of lax coding habits, whereby a hostile user submits code to one of your web forms, instead of whatever data you were trying to collect.
by Etel Sverdlov
This tutorial covers how to login with root, how to change the root password, how to create a new user, how to give the new user root privileges, how to change the port, and how to disable root login in. This tutorial is written for Ubuntu. When you first create your server, this tutorial explains the first steps you need to take. This tutorial is written for Ubuntu 12.04.
Great tips, Kamal. Thanks a lot.

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....?
Good tips, Kamal. Thanks again.
Have another answer? Share your knowledge.