Install fail2ban for SSH on ServerPilot / Vultr Instance
ServerPilot out of the box does not have a solution to deal with brute force attacks, it does have a sister company called Heatshield which rejects IP addresses that try and constantly connect to your site, you can also do the same with the opensource fail2ban. fail2ban is an app which bans access to your site…
Read MoreSet Up LMD Maldet and ClamAV on ServerPilot and VULTR
Set up a malware scanner with LMD Maldet and ClamAV on ServerPilot and an instance like Vultr or Digital Ocean. One of the key server malware scanners is Linux Malware Detect and works very nicely scanning any Linux distribution, it keeps an updated database of known malware exploits from an updated registry. The Linux Malware Detect tool can also integrate…
Read MoreChanging the SSH Port in ServerPilot
ServerPilot comes with a default firewall which is enabled and comes in the form of a toggle in the ServerPilot control panel. The panel is a front for the ufw (uncomplicated firewall) app which in turn is a front for ip tables but with a lower learning curve, by default the below rules are the…
Read MoreAutomatically Update Your WordPress Plugins and Themes and Translations
WordPress allows you to automatically update your WordPress plugins and themes and translations by adding some PHP constants and filters to your WordPress installation. Constants are best off added in /wp-config.php and filters are preferred to be used in a wp-content/mu-plugins/ plugin, to create a mu-plugin is easy for example just create a updates.php file with the…
Read MoreUsing ‘Local by FlyWheel’ as a Local Development Workflow for WordPress
Local by FlyWheel (previously known as Pressmatic) is a new WordPress local development solution which uses Docker container technology and VirtualMachines, the app takes care of all the installation and configuration of everything you need and can effortlessly spin up multiple WordPress sites with different configurations for PHP and web server as well as include SSL certs…
Read MoreSetting up Composer and PHPCodesniffer on Atom Editor on macOS
Here is a guide on how to get PHPCodesniffer going on Atom text editor using the WordPress code standards, this will be done via adding PHPCodesniffer via Composer, you can also add PHPCodesniffer via Pear or Homebrew, I used to have it running via Pear but have found it to be not as reliable. Install Composer Open…
Read MoreHow to update VVV for WordPress | Varying Vagrant Vagrants
I noticed that my version of VVV or Varying Vagrant Vagrants was older than the current release and started to look into how to update VVV safely as I have done some customisations to it and added some additional files to the VVV main directory. Move into your local VVV directory, halt vagrant and run git pull vagrant halt…
Read MoreWordPress VVV Vagrant Running Slow on Virtual Box
Is your VVV Vagrant running slow on Virtual Box, lot’s of MySQL restarts, takes ages to SSH into the box – that might be because the initial memory settings was left at 512MB which is not pretty and as your working day goes on and you feel like your hitting a brick wall. This can be…
Read MoreInstall and set up wp-cli WordPress on shared and local hosting
WordPress has a command line tool called wp-cli which operates similar to what Drush does for Drupal, it runs on OSX/Linux operating systems with a minimum of PHP 5.3.2 or later and WordPress 3.5.2. This guide will go through getting and installing wp-cli and basic usage it covers for either a local or production server environment. Install wp-cli curl…
Read More