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.
-
Check critical commands
-
Set up SSH & Apache
-
Test SSH
- Harden SSH login policy
- Customize SSH port (get ssh port from a separate variable)
- Use public key authentication method
-
Test Apache
-
Remove Apache default site
-
Strict Apache security policy
- Apply custom patch to the source code
-
Remove root login
-
Restrict root accessibility
-
Add a default user with sudo permissions
-
Enable userdir for this new user
-
Set up PHP, phpMyAdmin & MySQL
- Set Apache PHP environment (get php version from a separate variable)
- Set MySQL database
- Configure phpMyAdmin
-
Set up firewall configuration with ufw
-
Set up a PHP website that takes user input and writes it into MySQL database
-
Set up and install Wordpress
- Points to different DNS (/etc/hosts)
-
Check /var/log/auth.log for any suspicious SSH login attempts