Static Web Hosting With Nginx And Docker

If you need to host some static content online, then you can do this incredibly easily with the pre-prepared official NGINX docker image. Steps Install docker on your server if you haven't already. Navigate to just above the folder that contains your site. For this tutorial, I will refer to…

Read this article

Ubuntu 16.04 - Using Files To Test ZFS

It's good to practice using a tool before actually "going live" with it. Sometimes we don't have disks/computers lying around to be able to set up a dev ZFS RAID array to experiment with, so this tutorial is simply here to show you how to get started with ZFS…

Read this article

ZFS Record Size

Whilst watching a discussion between Allan Jude and Wendell about ZFS, the topic of using the appropriate record size came up. I was intrigued and immediately started breaking up my 6 x 3TB RAIDz2 NAS into multiple datasets. Creating a dataset is as easy as sudo zfs create pool/dataset-name…

Read this article

Moving Files

Moving files is such a common/basic thing we have to do every day in Linux that you're probably wondering why I'm even bothering to write a tutorial on it. Well, there are often important subtleties that are forgotten or need to be learned. Hopefully after reading this tutorial, you…

Read this article

PHP-FPM - Show/Hide Errors

Turning on the display of errors with PHP-FPM is as easy as switching display_errors from Off to On in the /etc/php/7.0/fpm/php.ini file. To make life easier, you can copy/execute the following scripts to do this for you. Display Errors (Dev) SEARCH="display_…

Read this article

Ubuntu 16.04 - Install NGINX with PHP

This tutorial will quickly get you started with deploying an NGINX webserver and configuring it to work with using PHP 7.0. If you want to install MySQL, MariaDB, or PostgreSQL as well, that's easy enough to do separately after/before completing this tutorial. Steps Install NGINX and php-fpm sudo…

Read this article

Allan Jude Interview with Wendell - ZFS Talk & More

Below is an interesting talk between Alan Jude and Wendell from Level1Techs about the ZFS filesystem. No matter what level you are at with ZFS, from a novice thinking about using it for the first time, to a professional who has used it for years, I can almost guarantee there…

Read this article

Deploy Nextcloud Through Docker

This tutorial will aim to get you set up with a nextcloud server on Ubuntu 16.04 in 5 minutes or less. It is split into two parts, one for setting up the database, and one for deploying the application layer (nextcloud), because the database and the application layer may,…

Read this article

Copy To Clipboard

You've probably noticed by now that this blog has lots of snippets that you want to copy into a script before executing. It would be convenient if you didn't have to manually select all of the text to copy it into your clipboard. Up until now I've ignored adding this…

Read this article

PHP - Using Traits

Introduction Traits, which were introduced in PHP 5.4, are defined as: Traits are a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent…

Read this article