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…
Update root password MySQL
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';
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…









