Change Reseller theme via SSH

chuza

Well-Known Member
Jul 4, 2008
47
0
56
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.
 

chuza

Well-Known Member
Jul 4, 2008
47
0
56
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.
 

Infopro

Well-Known Member
May 20, 2003
17,112
513
613
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/
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
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: