Introduction
Use one of the following options to find the document root of a domain on your cPanel server.
With cPanel GUI access
- Login to cPanel as the user that owns the domain
- Click on the Domains icon under the Domains section
- Locate your domain and click on the document root link
- The link opens File Manager in the location of the document root
- The left sidebar in File Manager shows the exact path
With root SSH access
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
Comments
0 comments
Article is closed for comments.