If you have existing Docker containers which you'd like to update to start automatically upon boot, you can run the following command: docker update –restart=always CONTAINER_NAME There are a couple…
Auto start Tomcat and Docker containers
Disable smart error for specific disk Proxmox
We recently removed a disk from Proxmox and started receiving SMART errors with the info FailedReadSmartData. All that was required was to edit the smartd.conf file as follows: nano /etc/smartd.conf…
UNMS Docker Redis keeps restarting
After updating UNMS Redis sometimes gets itself into a restart loop. To solve this, simply run the following three commands and Bob should be your uncle 🙂 sudo ~unms/app/unms-cli stop…
Enable PHP exec and shell_exec PHP-FPM WHM/cPanel
Edit the following file (be sure to replace username.tld with the appropriate username): nano /opt/cpanel/ea-php70/root/etc/php-fpm.d/username.domain.conf This assumes we are enabling these functions for PHP version 7.0. Simply change according to…
Regex to validate domain name / URL in jQuery
function is_valid_url(url) { return /^((http|https)://)?([a-zA-Z0-9_][-_a-zA-Z0-9]{0,62}.)+([a-zA-Z0-9]{1,10})$/.test(url); } Enjoy 🙂
Add new disk to Proxmox VM
Adding a new disk to an Ubuntu VM running on Proxmox can be achieved as follows: Click on the VM -> Hardware -> Add "Hard Disk". I always choose cahce…
Create, get, delete cookie Javascript
With tons of information out there I searched for way to long to find out how to do basic cookie manipulation in Javascript / jQuery, so here goes: Create/Set cookie…
DirectAdmin website showing as suspended
From time to time DirectAdmin shows a website as suspended even though the website is not suspended. This often happens if a client doesn't pay their hosting invoice, ends up…
ValidatorException: PKIX path building failed
When using self-signed certificates you might come across the following error: > "javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" To solve…
Redirect HTTP to HTTPS cPanel
There are a couple of ways to ensure that all non-secure connections  (HTTP) are forced to use a secure connection (HTTPS). The simplest of which is to go the root…









