Category: Linux

LEMP: CentOS 7, Nginx PHP7, and Redis for WordPress

Scripts to setup a WordPress server on CentOS 7 with Nginx, PHP/PHP-FPM 7, Redis and more. Firewalld – allow only HTTP/S and SSH traffic Letsencrypt – free SSL certificates Yum Cron – keep system...

Install ClamAV + Maldet on CentOS 7

A quick guide for installing ClamAV and Maldet on CentOS 7 for malware scanning and quarantining. Install ClamAV and Maldet Using the ClamAV malware library will speed up the scans performed by Maldet. You...

Node.js + PM2 + Nginx + Redis on CentOS 7

This is a quick setup guide for the application stack I have been using recently. Most of my latest work has been a throwback to the first server-side programming I did in the 90’s...

Slate Documentation Server on EC2 Amazon Linux

I was trying to setup the Slate API Documentation Server on an EC2 instance running Amazon Linux. When I fetch the git repository and attempted to install the dependencies using bundle install, it would...

Yum Install Jenkins as a Service on CentOS 7

I have previously written about how to Install Jenkins on CentOS as a Service where it was necessary to write your own startup, shutdown, configuration, and init.d scripts. Luckily this is all much easier...

Letsencrypt: Free SSL Certificates for Nginx

I always wanted all of my sites to run over SSL, but it also didn’t seem worth the expense of buying certificates for all the domains I own. Enter Let’s Encrypt which offers free...

Dynamically Update /etc/hosts from Nginx

I wanted to guarantee that requests coming from one of my servers going to a domain they host are routed to localhost. The solution I arrived at was to generate a list of domains...

MySQL / MariaDB Backup & Archive Script

I am using MariaDB – the open source version of MySQL – and wanted an easy way to backup my databases on a regular schedule without having to do anything when I created or...

Monitor IPSec VPN Tunnel

I have an IPSec Tunnel built from one of my servers to an integration partner which is used to secure our web service calls. It uses a IPSec, OpenSwan, and Pluto to maintain a...

Install PHP 7.0 (phpng) on CentOS & RedHat

This guide will show how to install PHP 7.0 on RedHat and CentOS Linux. This version of PHP is also known as PHPNG to indicate it is the “next generation” of PHP. Many fundamental improvements...