WordPress and SELinux

The blag has moved again and this time I wanted to leave SELinux enabled. Everything pretty much worked “out of the box” except for the Redis plugin this site uses wasn’t able to connect to the Redis service. Searching the SELinux audit log revealed that the following setting needed to…

read more

Enabling KSM

Using Kernel same-page merging can greatly reduce the amount of memory used on a Linux system, especially when the machine is used as a VM hypervisor. To enable KSM you can follow the steps below. Optional, adjust the frequency in which the KSM service scans for duplicate memory pages Enable…

read more

Building RPMs for EasyApache 4

I’m excited to announce my next tutorial in the cPanel for Sysadmins series will be about how to build RPMs for EasyApache 4. We’ll take a look at deconstructing existing PHP version RPMs and how to use their spec files to build our own custom RPMs for PHP versions that…

read more

Using cPanel’s standardized hooks system

Working with Standardized Hooks While cPanel’s standardized hook documentation is great it lacks practical examples of how to add and remove non Perl based hooks. We’ll be looking at how to implement a simple bash script to maintain custom entries to Apache’s PHP configuration file across handler and PHP version…

read more

cPanel Tutorials

cPanel for sysadmins! This will be a series of tutorials on some of the more advanced things you can do with the cPanel web hosting automation software. We’ll be covering everything from building RPMs for use with EasyApache 4, automating tasks with the various APIs, standardized hooks to running your…

read more

New site hosting

A large chunk of content on this site was lost due to the power outage mentioned in the Gitlab post and like the good admin I am, my backups were hosted on the same server as the VM hosting this site. Luckily I did have some older backups on my workstation at…

read more

Performance monitoring with Sysdig

The Sysdig software seems highly geared towards containers like Docker but it works just as well on bare metal. The software is scriptable much like dtrace is. In order to work with this utility we must first install it. Download the following playbook, set the correct IP address in the…

read more