SOLVED Changed default root directory SSL points to old location

Ramon Pego

Well-Known Member
Mar 12, 2019
62
11
8
Brazil
cPanel Access Level
Root Administrator
Twitter
Hi,
I recently came here to know how can i change my default home directory public_html/ to public
Changing default home directory 'public_html'

And now i learn how, but the ssl certificates points to old folder (public_html)

If i type
Code:
http://example.com.br
open /home/user/public

but if i type
Code:
https://example.com.br
open /home/user/public_html/
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
You need to do the same thing you did with the primary userdata file but with the SSL file. So the instructions are the same but the file is domain.tld_SSL

For example if the domain I want to change this for is cptest.com I'd modify the cptest.com and cptest.com_SSL files in the following directory:

Code:
[[email protected] cptest]# cd /var/cpanel/userdata/cptest/
[[email protected] cptest]# ls -lah
total 56K
drwxr-x---  2 root cptest 4.0K May 17 05:17 .
drwx--x--x 22 root root   4.0K May 16 10:14 ..
-rw-r--r--  1 root root    253 Apr 26 15:38 cache
-rw-r--r--  1 root root    282 Apr 26 15:38 cache.json
-rw-r--r--  1 root root    737 May  9 14:33 cptest.com
-rw-r--r--  1 root root    742 May  9 14:33 cptest.com.cache
-rw-r--r--  1 root root   2.2K Apr 26 15:36 cptest.com_SSL
-rw-r--r--  1 root root   2.0K Apr 26 15:36 cptest.com_SSL.cache
-rw-r--r--  1 root root    101 Apr 25 16:23 main
-rw-r--r--  1 root root    100 Apr 25 16:23 main.cache
-rw-r--r--  1 root root    488 May  9 14:33 new.cptest.com
-rw-r--r--  1 root root    513 May  9 14:33 new.cptest.com.cache
-rw-r--r--  1 root root    605 Apr 26 15:36 new.cptest.com_SSL
-rw-r--r--  1 root root    614 Apr 26 15:36 new.cptest.com_SSL.cache

Thanks!
 
  • Like
Reactions: Ramon Pego