Pi Web Server Security

Pi Web Server Security

Let’s consider this Phase II of building your own web server to host your WordPress site at home. When dealing with anything interwebs, security is something to be proactive about. Especially if you’re hosting your own Pi server from your home network. The following steps I pulled from a number of guides I found around the web, here’s what worked for me.

SSH Key Pair Authentication.

Up to now, we’ve used a password to connect to the Pi, using the default pi user. We’re going to ditch passwords and use the much more secure key pair authentication method which will help protect against brute-force password cracking attacks.

These next steps must be completed on your Linux or Mac OS desktop or laptop computer, not the Pi itself. Firstly, let’s generate the ssh keys for your machine:
Read more

Installing WordPress on a Raspberry Pi

Installing WordPress on a Raspberry Pi

Now that we have a server running Nginx, php7.0-fpm with MariaDB we can install WordPress, which will act as our content management system (CMS) and provide a framework for the website.

Install WordPress

Instlaling WordPress is pretty straightforward. Let’s make sure we’re in the correct directory:

1
cd /var/www/html/

Next let’s download the latest version of WordPress to this location:

1
sudo wget http://wordpress.org/latest.tar.gz

Read more