How to edit the root domain file.

Operating System & Version
Ubuntu 20.04
cPanel & WHM Version
106.0.11

RossM.

Member
Jan 1, 2023
6
0
1
Indianapolis, IN
cPanel Access Level
Root Administrator
Hey Guys,


I was wondering how I can edit the main domain of my site.


The main domain is REDACTED but I can't find the file path to edit those. The domain IS NOT attached to a user.


Here is a list of the /home/ where all domains default, as stated the REDACTED domain is the primary site.
1672885497920.png
 
Last edited by a moderator:

RossM.

Member
Jan 1, 2023
6
0
1
Indianapolis, IN
cPanel Access Level
Root Administrator
Hey there! Can you provide me more details on what you mean when you say the domain is not attached to a user? I think that will be the key to getting you the correct information.
It’s the root domain and won’t let me attach it to a user. The domain serves as the base domain in which I create other accounts on it
 

RossM.

Member
Jan 1, 2023
6
0
1
Indianapolis, IN
cPanel Access Level
Root Administrator
Thanks for the additional details. There is no such thing as a "root domain" on a cPanel server. Do you mean that this is the hostname of the machine?
I mean I can’t find the document root for a domain I have on my service.

For example: new accounts are made in /home/user/public_html, well I can’t find the document root for a specific domain on my service.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,338
2,243
363
cPanel Access Level
Root Administrator
Interesting. From the command line you can try running this:

Code:
/scripts/whoowns domain.com
and that will tell you the account the domain exists under. You could also manually view the Apache configuration at /etc/apache2/conf/httpd.conf and search for the domain there, as that would show the path.
 

RossM.

Member
Jan 1, 2023
6
0
1
Indianapolis, IN
cPanel Access Level
Root Administrator
Interesting. From the command line you can try running this:

Code:
/scripts/whoowns domain.com
and that will tell you the account the domain exists under. You could also manually view the Apache configuration at /etc/apache2/conf/httpd.conf and search for the domain there, as that would show the path.
Nobody