Answer the question
In order to leave comments, you need to log in
Do I need to disable root access on vps?
Hello. I am setting up vps hosting for the first time. I read articles, but many of them contradict each other.
Interested in current, for 2018 approaches. So, my newbie questions are:
Answer the question
In order to leave comments, you need to log in
If I were you, I would set the site to Drupal Nginx + php-fpm, not Apache
Root login can be disabled by first creating a user and adding it to the sudoers group .
1. Disable root, create your own user and put it in the sudo group, while disabling the sudo password request, and creating as complex a password as possible for your user
2. Create your own ssh-key and log into the server using it
3. For a firewall, I can recommend for you UFW, so it's simple and suits your tasks
4. As Twelfth Doctor already said - throw out apache, instead take a bunch of Nginx + php-fpm
5. I would also recommend enabling swap
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question