Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.
/ EE-Secured Public archive

Install script and files for a secure WordPress server using rtcamp's EasyEngine

Notifications You must be signed in to change notification settings

mattradford/EE-Secured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EE-Secured

Just here for reference now, as EE has changed quite a bit. Still some good bash in here though

Install script and files for a secure WordPress server using rtcamp's EasyEngine.

Intended for a DigitalOcean droplet running Ubuntu 14.04 x64, but can be used for any VPS with modification.

The script:

  • updates APT & upgrades system
  • checks if swap is present, if not user can choose to add a swapfile
  • configures unattended security updates
  • installs EasyEngine
  • changes default SSH port to a random one and allows only key-based login
    • (assumes that a key has already been added to the server during droplet creation)
  • adds & enables UFW
    • configures rules, including randomly assigned SSH port
    • whitelists CloudFlare IPv4 Ranges
  • installs fail2ban with WP brute force protection
    • fail2ban active on the random SSH port
  • changes the default server page to show the hostname
  • prints the ssh command to access the new server

In order to run the script, create a new droplet, SSH into it, then:

  • wget https://raw.githubusercontent.com/mattradford/EE-Secured/master/do-install.sh
  • chmod +x do-install.sh
  • ./do-install.sh

You will need to answer some prompts as the script runs.

After the script has run, log in to the server again using a new terminal to check everything is correct. Then alter EasyEngine's conf file (/etc/easyengine/ee.conf) to suit your defaults.

The server is then ready for ee site create to start adding WordPress sites.

License

[GPL] (http://www.gnu.org/licenses/gpl-2.0.txt).

About

Install script and files for a secure WordPress server using rtcamp's EasyEngine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published