WebhostGear.com - the hosting resource for professionalshosting tutorials 
hosting howto webhost guide server management

Change All Package Themes in Cpanel




ramprage

Steve Leggett is the owner of WebHostGear.com and Wave Point Media Inc. He use to run and own his own web hosting company, Tower Host, which was recently sold. Steve now specializes in server administration and web development.

Change All Package Skins in Cpanel
Have you ever wanted to change all users’ package themes/skins from Tree to Xskin server wide without going through each package one at a time? We have a quick tutorial on how to change all user package themes in Cpanel.

First off you will need to have root access to your server, login as root then do the following:

1) Change directories
cd /var/cpanel/packages

2) A look in a package file, list contents of directory
ls for the directory contents then type pico packagename
You should see something like this:


FEATURELIST=default
QUOTA=35
IP=n
CGI=y
FRONTPAGE=n
CPMOD=x
MAXFTP=2
MAXSQL=2
MAXPOP=5
MAXLST=0
MAXSUB=5
MAXPARK=0
MAXADDON=1
BWLIMIT=400
HASSHELL=n

What we’re interested in changing is the CPMOD value.

3) Changing the user package
 The first  is the theme you want to change from, the latter is the theme you want to change to. In this case we want to change Tree skin to x2 skin on all user packages as some of our resellers are using an older skin in their packages.

replace CPMOD=tree CPMOD=x2 -- * 

4) Make sure that the changes have taken effect by opening one or two of the package files.

pico packagename

Then ctrl+w to search: type in CPMOD

You should see the new Cpanel theme value for CPMOD.

New! - Need server help? Hire an Expert

Get professional help with your configuration, script installation or server issue.
Learn how we can help you with any server problem and make your server run like new.

By : ramprage Rating : Average Rating : 4.00 From 1 Voter(s) Views: 4810 Date: June 25, 2004

Return to WebHostGear.com