The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Allowing users to edit the document root of a subdomain

Discussion in 'General Discussion' started by Arvo Bowen, Sep 30, 2015.

  1. Arvo Bowen

    Arvo Bowen Member

    Joined:
    Sep 30, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I currently have an account at GoDaddy and at Bluehost. When using the cPanel at GoDaddy I have the ability to go into my subdomains and then EDIT the document root path. With Bluehost in the cPanel I have to delete the subdomain and then recreate it every time.

    I wanted to find out if there was a way when getting into the WHM if there was an option somewhere to enable this feature.

    Thanks!
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    As far as I know, there is no ability. If you don't want to delete it, you would need to modify /var/cpanel/userdata/user/subdomain
    change the "documentroot" and rebuild apache conf
    Code:
    # /scripts/rebuildhttpdconf
    then restart apache
     
  3. Arvo Bowen

    Arvo Bowen Member

    Joined:
    Sep 30, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Strange... I wonder how GoDaddy is doing it... It shows they are using cPanel 11.50.0.30 and bluehost seems to be on 11.48.4 (build 7)

    Do you think it's something that was offered in the later version of cPanel?

    I just found this...
    https://forums.cpanel.net/threads/change-document-root.84317/

    cPanelDavidG seems to think it's possible but never shares how to do it. :/
     
    #3 Arvo Bowen, Sep 30, 2015
    Last edited: Sep 30, 2015
  4. Arvo Bowen

    Arvo Bowen Member

    Joined:
    Sep 30, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Also, in the cPanel documentation it seems it's possible...
    link: https://documentation.cpanel.net/display/ALD/Addon+Domains

     
    #4 Arvo Bowen, Sep 30, 2015
    Last edited by a moderator: Sep 30, 2015
  5. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Ha yeah, fail on my part I probably should of checked first before I opened my mouth. I just checked and I am able to modify the location in cPanel:

    s3.amazonaws.com/uploads.hipchat.com/31137/205915/mEAOrgw9hvi5xwi/upload.png

    I don't see an option for this though in Tweak Settings for example. BlueHost is so heavily modified so who knows to be honest, not sure if that is so on a VPS with them, but you may get better luck asking them unless someone else responds here.
     
    #5 Jcats, Sep 30, 2015
    Last edited by a moderator: Sep 30, 2015
  6. Arvo Bowen

    Arvo Bowen Member

    Joined:
    Sep 30, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Thanks for checking Jcats! Yea it seems a few others support it too! :/

    Just to point out to others who might be unsure what we are talking about...

    GoDaddy:
    godaddy.png

    Bluehost:
    bluehost.png
     
  7. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Yeah that's bluehosts highly modified theme. If you have a VPS, you should be able to set it to 'x3' or 'paper lantern' no?
     
    Arvo Bowen likes this.
  8. Arvo Bowen

    Arvo Bowen Member

    Joined:
    Sep 30, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Perfect! That worked out beautifully now I have that option. The x3 theme was kinda rough looking but the paper lantern theme looks clean, nice and simple, AN I HAVE MY EDIT OPTION!!!

    It's ashamed... I just got used to the bluehost theme and it looked nice, but how can you use a crippled theme! :)

    Thanks a million Jcats! I never thought about changing the theme.
     
  9. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    275
    Likes Received:
    31
    Trophy Points:
    28
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    You can always nudge them and ask them to include it :)

    Glad you have the option back now tho!
     
  10. Arvo Bowen

    Arvo Bowen Member

    Joined:
    Sep 30, 2015
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Yea, that's what they said too. So I did leave some feedback. One thing I will caution others that do the same thing on...

    If you are going to use a different theme MAKE SURE that while still in the bluehost theme you change the setting that lets you choose 1 of 4 different places as a landing page once logged in. You SHOULD pick anything other than "cPanel". Ex: I have mine set to "Home".

    I made the mistake of having mine set to cPanel, then change to the paper lantern theme. I quickly realized I could not access the main bluehost page to add/remove domains etc.. :eek:
     
    Jcats likes this.
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,743
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page