Copy index.html into the following directory: /root/cpanel3-skel/public_html
Set default page cPanel/WHM
Update WordPress image URLs after URL change
If you've moved your WordPress over to another domain or changed the URL you might end up with a situation where the images that have been uploaded are pointing to…
Rename Proxmox node with existing VMs
Please note that I have only tried this on a single Proxmox node, and NOT a node joined to a cluster. Change to the new hostname in the following 3…
Check if your DNS server "works" for a domain name
dig domain-to-query.co.za @dns1.your-dns-server-domain.co.za +short
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 🙂









