Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Changed default root directory SSL points to old location

Discussion in 'Security' started by Ramon Pego, May 17, 2019.

  1. Ramon Pego

    Ramon Pego Registered

    Joined:
    Mar 12, 2019
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    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/
     
    #1 Ramon Pego, May 17, 2019
    Last edited by a moderator: May 17, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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:
    [root@server cptest]# cd /var/cpanel/userdata/cptest/
    [root@server 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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Ramon Pego likes this.
  3. Ramon Pego

    Ramon Pego Registered

    Joined:
    Mar 12, 2019
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Thank you, it's worked
    best regards.
     
    cPanelLauren likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice