Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    45

    Default Change Reseller theme via SSH

    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. #2
    Member
    Join Date
    Jul 2008
    Posts
    45

    Default 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. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    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. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default 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
      Quote Originally Posted by cPanelDon View Post
      [...] the file that stores the WHM theme is located within the home directory of the applicable user (e.g., root or a reseller user), such as at the following example paths:
      Code:
      /root/.whmtheme
      /home/username/.whmtheme
    • cPanel Forums - View Single Post - Cannot change from WHM X theme after upgrade to 11.25
      Quote Originally Posted by cPanelDon View Post
      [...] As a reminder, to help when debugging issues with a third-party theme, the WHM theme may be manually switched by editing the following file (in a user's home directory) that contains a single line specifying the theme name to use:
      Code:
      ~/.whmtheme
      Examples (showing the default WHM X theme, "x"):
      Code:
      # cat ~/.whmtheme
      x
      
      # cat /root/.whmtheme
      x
      
      # cat /home/$username/.whmtheme
      x
    • cPanel Forums - View Single Post - Default WHM theme for new resellers
      Quote Originally Posted by cPanelDon View Post
      It is possible to set a default WHM theme for new resellers by creating a file at the following path that contains the name of the theme:
      Code:
      /root/cpanel3-skel/.whmtheme
      Via root SSH access, here is an example command to set a default theme for new resellers where the WHM theme name is "x" (that is the stock-default for WHM):
      Code:
      # echo "x" > /root/cpanel3-skel/.whmtheme
      To view the file contents and confirm what was just set, the following may be used:
      Code:
      # cat /root/cpanel3-skel/.whmtheme
      Example output:
      Code:
      # cat /root/cpanel3-skel/.whmtheme
      x
      WHM theme names may be obtained or confirmed using one of the following methods:
      1.) Via the following WHM menu paths:
      WHM: Main >> Themes >> Change WHM Theme
      WHM: Main >> Themes >> Universal Theme Manager >> WHM [Manage Themes]
      2.) Via a directory listing of the following path:
      Code:
      /usr/local/cpanel/whostmgr/docroot/themes/
      Example commands:
      Code:
      # ls -ahl /usr/local/cpanel/whostmgr/docroot/themes
      # find /usr/local/cpanel/whostmgr/docroot/themes -maxdepth 1 -type d

Similar Threads & Tags
Similar threads

  1. Install cPanel theme via SSH
    By MironJ in forum Themes and Branding
    Replies: 0
    Last Post: 01-01-2011, 04:25 PM
  2. Theme Change after Upgrade
    By Antonimo in forum Themes and Branding
    Replies: 5
    Last Post: 02-15-2010, 07:13 PM
  3. Cpanel Theme Change ?
    By santame in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-16-2004, 03:48 AM
  4. change theme for all users
    By macklus in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-19-2004, 11:03 AM
  5. Change Theme
    By gic in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-15-2003, 01:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube