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.

38 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. ### This file defines the structure of the real laboratory test which was performed as a part of the Linux server course in Haaga-Helia University of Applied Sciences in spring 2018.
  2. 0) Check existence of critical commands
  3. 1) Set up SSH & Apache
  4. - Test SSH
  5. - Harden SSH login policy
  6. - Customize SSH port (get ssh port from a separate variable)
  7. - Use public key authentication method
  8. - Test Apache
  9. - Remove Apache default site
  10. - Harden Apache security policy
  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 in the web browser view
  21. 5) Set up and install Wordpress
  22. - Points to different DNS (/etc/hosts)
  23. - Create a symbolic link from /usr/share/wordpress to /var/www/html/wordpress
  24. 6) Check /var/log/auth.log for any suspicious SSH login attempts
  25. - multiple entries were present (you need to parse the log file to see all suspicious entries!)