How to configure the default WHM theme for new resellers?
How to configure the default WHM theme for new resellers?
When creating the packages in WHM you can select the theme you require to be used for any account using that package.
I am speaking of the theme of the WHM for new resellers…
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:
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:/root/cpanel3-skel/.whmtheme
To view the file contents and confirm what was just set, the following may be used:Code:# echo "x" > /root/cpanel3-skel/.whmtheme
Example output:Code:# cat /root/cpanel3-skel/.whmtheme
WHM theme names may be obtained or confirmed using one of the following methods:Code:# cat /root/cpanel3-skel/.whmtheme x
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:
Example commands:Code:/usr/local/cpanel/whostmgr/docroot/themes/
Code:# ls -ahl /usr/local/cpanel/whostmgr/docroot/themes # find /usr/local/cpanel/whostmgr/docroot/themes -maxdepth 1 -type d
cPResources: Submit a Support Request - Submit a Bug Report - Review existing Tickets-- Donald cPanelDon Holl - Analyst, cPanel Quality Assurance
Thanks.
But hown can i change the WHM theme for all current accounts (already been created) on the same server ?
Existing resellers can access WebHost Manager to change the WHM theme via the following menu path: WHM: Main >> Themes >> Change WHM Theme
cPResources: Submit a Support Request - Submit a Bug Report - Review existing Tickets-- Donald cPanelDon Holl - Analyst, cPanel Quality Assurance
But this way each client has to access and configure WHM.
Is there a way to do this for them all at once?
The WHM theme can be manually set for individual resellers via SSH access using a command like the following example, where "$username" should be replaced with the reseller's login username and where "x" (the default WHM theme) should be the name of the desired WHM theme:
Code:# echo "x" > ~$username/.whmtheme
cPResources: Submit a Support Request - Submit a Bug Report - Review existing Tickets-- Donald cPanelDon Holl - Analyst, cPanel Quality Assurance
WHM is for Admins, so by default, the Clients should not have any access to WHM. CPanel is meant for them.