Can't change primary domain document root

Conex

Registered
Dec 1, 2019
2
0
1
Algeria
cPanel Access Level
Root Administrator
Hi cPanel,

I can't make my domain work in sub folder, I did changed the domain

/var/cpanel/userdata/USERNAME/DOMAIN.COM

documentroot: /home/username/public_html
path: /home/username/public_html/cgi-bin

to

documentroot: /home/username/public_html/subdir
path: /home/username/public_html/subdir/cgi-bin

I did removed the cache files

and exec

/scripts/updateuserdatacache


# /scripts/rebuildhttpdconf
# service httpd restart


but , still not working in my domain sub folder, but instead it works in the root folder

can u please help me ASAP

regards
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston