Instructions to set up a basic LAMP+SSH server environment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
942 B

6 years ago
  1. 0) Check critical commands
  2. 1) Set up SSH & Apache
  3. - Test SSH
  4. - Harden SSH login policy
  5. - Customize SSH port (get ssh port from a separate variable)
  6. - Use public key authentication method
  7. - Test Apache
  8. - Remove Apache default site
  9. - Strict Apache security policy
  10. - Apply custom patch to the source code
  11. - Remove root login
  12. - Restrict root accessibility
  13. - Add a default user with sudo permissions
  14. - Enable userdir for this new user
  15. 2) Set up PHP, phpMyAdmin & MySQL
  16. - Set Apache PHP environment (get php version from a separate variable)
  17. - Set MySQL database
  18. - Configure phpMyAdmin
  19. 3) Set up firewall configuration with ufw
  20. 4) Set up a PHP website that takes user input and writes it into MySQL database
  21. 5) Set up and install Wordpress
  22. - Points to different DNS (/etc/hosts)
  23. 6) Check /var/log/auth.log for any suspicious SSH login attempts