{"id":386,"date":"2009-12-03T10:56:49","date_gmt":"2009-12-03T14:56:49","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=386"},"modified":"2013-03-30T06:50:31","modified_gmt":"2013-03-30T10:50:31","slug":"howto-change-cpanel-theme-for-multiple-accounts","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/howto-change-cpanel-theme-for-multiple-accounts","title":{"rendered":"Howto: Change cPanel theme for multiple accounts."},"content":{"rendered":"<blockquote><p><span style=\"color: #0000ff;\"><strong>How to change cPanel theme for multiple accounts?<\/strong><\/span><\/p><\/blockquote>\n<p>The cPanel theme for an account is specified in the <strong>\/var\/cpanel\/users\/username file<\/strong> in the format<\/p>\n<p>RS=value<\/p>\n<p><span style=\"color: #0000ff;\"><strong>For example:<\/strong><\/span><\/p>\n<blockquote><p>BWLIMIT=unlimited<br \/>\nDEMO=0<br \/>\nDNS=domainname.com<br \/>\nFEATURELIST=default<br \/>\nHASCGI=1<br \/>\nIP=IPHERE<br \/>\nLANG=english<br \/>\nLOCALE=en<br \/>\nMAXADDON=0<br \/>\nMAXFTP=0<br \/>\nMAXLST=0<br \/>\nMAXPARK=0<br \/>\nMAXPOP=5<br \/>\nMAXSQL=0<br \/>\nMAXSUB=0<br \/>\nMTIME=1271068514<br \/>\nOWNER=root<br \/>\nPLAN=default<br \/>\nSTARTDATE=1228721668<br \/>\nUSER=username<br \/>\n<span style=\"color: #0000ff;\"><strong>RS=x3<\/strong><\/span><\/p><\/blockquote>\n<p>where, x3 is the theme. WHM only provides the option to change the cPanel theme for an account one at a time. In order to <strong>change the theme for all the accounts at once<\/strong>, execute the following script:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>for i in `ls -la \/var\/cpanel\/users\/ | awk \u2018{print $9}\u2019 | sed \u20181,3 d\u2019`<br \/>\ndo<br \/>\nsed -i \u201c\/RS\/d\u201d $i;<br \/>\necho \u201cRS=x3&#8243; &gt;&gt; $i;<br \/>\ndone;<\/strong><\/span><\/p><\/blockquote>\n<p>here, it will change the cPanel theme of all the accounts on the server to &#8216;x3&#8217; theme.\u00a0 Since all the files are updated manually, you need to execute the following script to rebuild the cache<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>\/scripts\/updateuserdomains<\/strong><\/span><\/p><\/blockquote>\n<p><span style=\"color: #0000ff;\"><strong>Note:<\/strong><\/span> The single OR double quotes in the script may change to dot (.) on copy\/pasting the command in the shell, so make sure you correct those before executing the command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to change cPanel theme for multiple accounts?<br \/>\nThe cPanel theme for an account is specified in the \/var\/cpanel\/users\/username file in the format<br \/>\nRS=value<br \/>\nFor example:<br \/>\nBWLIMIT=unlimited<br \/>\nDEMO=0<br \/>\nDNS=domainname.com<br \/>\nFEATURELIST=default<br \/>\nHASCGI=1<br \/>\nIP=IPHERE<br \/>\nLANG=english<br \/>\nLOCALE=en<br \/>\nMAXADDON=0<br \/>\nMAXFTP=0<br \/>\nMAXLST=0<br \/>\nMAXPARK=0<br \/>\nMAXPOP=5<br \/>\nMAXSQL=0<br \/>\nMAXSUB=0<br \/>\nMTIME=1271068514<br \/>\nOWNER=root<br \/>\nPLAN=default<br \/>\nSTARTDATE=1228721668<br \/>\nUSER=username<br \/>\nRS=x3<br \/>\nwhere, x3 is the theme. WHM only provides the option to change the cPanel theme for an account one at a time. In order to change the theme for all the accounts at once, execute the following script:<br \/>\nfor i in `ls -la \/var\/cpanel\/users\/ | awk \u2018{print $9}\u2019 | sed \u20181,3 d\u2019`<br \/>\ndo<br \/>\nsed -i \u201c\/RS\/d\u201d $i;<br \/>\necho \u201cRS=x3&#8243; &gt;&gt; $i;<br \/>\ndone;<br \/>\nhere, it will change the cPanel theme of all the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[502,503,505,501,506,504],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/386"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=386"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/386\/revisions"}],"predecessor-version":[{"id":2303,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/386\/revisions\/2303"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}