dig domain-to-query.co.za @dns1.your-dns-server-domain.co.za +short
Check if your DNS server "works" for a domain name
Resize/Expand Proxmox disk Centos DirectAdmin
You've found you're running out of disk space in DirectAdmin (Proxmox VM), and you'd like to allocate more disk space. One would hope that it would be as simple as…
Auto start Tomcat and Docker containers
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…
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…









