Use one of the following options to find the document root of a domain on your cPanel server.
If you have root access to the server you may use the following awk command to show the document root of a domain. Be sure to replace example.tld with your domain:
awk -F"[:= ]" '/example.tld/{print $1,$11}' /etc/userdatadomains | column -t