Getting correctly signed SSL Certificates for cPanel/WHM Services

Back in the day I set up a few VPSes with WHM/cPanel on to host some sites. As back then the certificates for the cPanel services (FTPD, SMTP, WHM, …) were self-signed and Let’s Encrypt was still in its early days, I also ordered a wildcard certificate for *.3rds.be along with that and configured WHM […]

Change cPanel Document Root

Recently I needed to change the document root (viz. the public_html folder) of a specific account on a WHM/cPanel server. Here’s how (root access required): Edit /var/cpanel/userdata/USERNAME/DOMAIN.COM Change the line documentroot: /home/USERNAME/public_html to reflect your needs Rebuild the Apache config files by executing /scripts/rebuildhttpdconf Restart the Apache service using service httpd restart