- All the Linux commands in this guide will be given as they are, without prepending
sudoto every command. We recommend disablingrootlogin for SSH access, as described further on, and logging in as a regular user, then switching to therootuser, and running all the commands asroot. Good quality Linux programs like the ones we describe in this guide (Nginx, Postfix, ClamAV, SpamAssassin, ProFTPD, Memcached, BIND, etc.) run under their own user, even if they are installed asroot. This means that you are not weakening the security of your system by installing such programs asroot. In this situation, where you install and configure specific high quality programs on your own server, as the only user running commands on the server, there is no reason to use a regular user and writesudoin front of every command. If you still have doubts on this subject, you can read this article.
- After editing a file, we won’t mention that you have to save it and then close it. We recommend using
nanoto edit files. After you open a file withnanofilenameand edit it, you can save it by pressingCtrl + x, theny, thenEnter. A file can be also saved withCtrl + swhile editing it.
- All the text in red should be replaced with your own data. For instance example.com must be replaced with your own domain name.
- Some applications need other applications to be installed in advance. For example, to install WordPress, you need to have Nginx, MariaDB and PHP already installed. All the applications are presented in the order in which they should be installed. If you try to install them in a different order, you can run into problems.
- By applying any of the instructions presented in this guide, you acknowledge that you agree to our Terms and that you have read the Introduction.
You can send your questions and comments to: