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.

Change Reseller theme via SSH

Discussion in 'User Experience' started by chuza, Feb 22, 2010.

  1. chuza

    chuza Well-Known Member

    Joined:
    Jul 4, 2008
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    How can we manually change theme of a reseller from Shell. A reseller came today with errors similar to this one below.

    "file error - /usr/local/cpanel/whostmgr/docroot/themes/trueblue-es/templates/listaccts.tmpl: not found"

    theme change link wasn't even working for that reseller. I would like to know the file where I could manually edit theme assigned to that reseller to edit it.
     
  2. chuza

    chuza Well-Known Member

    Joined:
    Jul 4, 2008
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Another error.

    Another error.

    [a fatal error or timeout occurred while processing this directive]file error - /usr/local/cpanel/whostmgr/docroot/themes/trueblue-es/templates/setmytheme.tmpl: not found

    Can someone from cPanel tell us which file has the reseller's theme, i checked /var/cpanel/users/reseller file and it doesn't have trueblue-es or anything like that. I checked other files as well but cannot find it.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The branding documentation might be helpful:
    Branding

    Not sure about a theme called trueblue-es sounds like an addon theme. If so you should find it listed in WHM > Universal Theme Manager > cPanel themes

    This path is where WHM's x theme is located, nothing else (here on my end):
    /usr/local/cpanel/whostmgr/docroot/themes/
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    How to manually set or reset the WHM theme preference

    Please note that if the file ".whmtheme" does not exist in a user's home directory then WHM will revert to displaying the stock-default theme "x" -- so you may either edit this file to set the desired theme or you may opt to remove the file. The file may be modified while using access methods other than WHM, such as via SSH/CLI, FTP, SFTP, and via cPanel File Manager when set to Show Hidden Files (dotfiles), thereby allowing resellers to manually reset their WHM theme if necessary.

    The following example commands may be used to set the stock-default "x" theme via console or command-line SSH access:
    • Set WHM "x" theme for the system user currently logged-in via SSH:
      Code:
      # echo "x" > ~/.whmtheme
    • Set WHM "x" theme for "root" (i.e., the server administrator):
      Code:
      # echo "x" > /root/.whmtheme
    • Set WHM "x" theme for a reseller user; in this example "$username" should be replaced by the reseller's WHM log-in username so the path specified will match their home directory:
      Code:
      # echo "x" > /home/$username/.whmtheme

    For additional reference I recommend following posts that include information detailing where and how to manually change the WHM theme for both "root" (administrator) and for resellers:
    • cPanel Forums - View Single Post - Cannot change from WHM X theme after upgrade to 11.25
    • cPanel Forums - View Single Post - Cannot change from WHM X theme after upgrade to 11.25
    • cPanel Forums - View Single Post - Default WHM theme for new resellers
     
Loading...

Share This Page