How to reset account home folder path - apache include issue.

rickwhitehead

Registered
Oct 14, 2019
1
1
3
Milton Keynes
cPanel Access Level
Root Administrator
Issue:
Cpanel account home folder path has changed to a document root (which is outside of account home) of a subdomain previously added to the same account using an include file.

Steps to reproduce:
Using an include file, I defined a subdomain document root which was outside of the account home folder. (the path to the document root of a gitlab installation) I quickly realised the cpanel account user didn't have sufficient access permissions for this directory. And then discovered errors displayed in cpanel for the cpanel account.

Steps attempted to reset:
I hid the .conf file from EasyApache, by renaming it:
Bash:
# mv /etc/apache2/conf.d/userdata/ssl/2_4/user/subdomain/includename.conf /etc/apache2/conf.d/userdata/ssl/2_4/user/subdomain/.includename.conf.BAK
,
rebuilt the httpd conf:
Bash:
# /usr/local/cpanel/scripts/rebuildhttpdconf
and restarted apache:
Bash:
# /usr/local/cpanel/scripts/restartsrv_httpd
When this didn't resolve the errors I also removed the subdomain via cpanel interface and restarted httpd service from WHM.

Environment:
/etc/redhat-release:CentOS Linux release 7.7.1908 (Core)
/usr/local/cpanel/version:11.82.0.16
/var/cpanel/envtype:standard
CPANEL=release

Errors in cpanel:
The system failed to create the file “/var/opt/redacted/nginx/.cpanel/datastore/.tmp.bbb03.MOUNTS_CACHE__proc_mounts” with permissions “0600” (as EUID: redacted, EGID: redacted) because of the following error: No such file or directory
Failed to save cache file “/var/opt/redacted/nginx/.cpanel/nvdata.cache” because of an error: (XID redacted) The system failed to create the file “/var/opt/redacted/nginx/.cpanel/.tmp.redacted.nvdata.cache” with permissions “0640” (as EUID: redacted, EGID: redacted) because of the following error: No such file or directory at /usr/local/cpanel/Cpanel/NVData.pm line 169.

at /usr/local/cpanel/Cpanel/NVData.pm line 169.

eval {...} called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/x86_64-linux-64int/Template/Plugins.pm line 217
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!