ABHIONLINUX
Site useful for linux administration and web hosting

Showing posts with label cpanel theme change from shell. Show all posts
Showing posts with label cpanel theme change from shell. Show all posts

2009/10/01

Awstats not updating in the cpanel server

Problem related to awstats updation.. run the following scripts

/scripts/runweblogs

Check the stats after run the scripts. If the error still persists

vi /var/cpanel/cpanel.conf then edit the extracpus=0 to 2

Then execute /usr/local/cpanel/startup

After this, run the above scripts ... it will update the awstats.

-------------------------------------------------------------------------

This problem may occur when apache log files are over 2GB in size and new logs won't update. The best way to prevent this to delete domain logs from the following path

/usr/local/apache/domlogs/yourdomain.com.log

2009/09/07

How to change theme from backend

1) Change directories

cd /var/cpanel/users

2) A look in a users file, list contents of directory
ls for the directory contents then type

pico username (replacing username with an account name)
You should see something like this:

BWLIMIT=524288000
DNS=usersdomain.com
FEATURELIST=default
IP=yourIPhere
LANG=english
MAXADDON=0
MAXFTP=3
MAXLST=0
MAXPARK=0
MAXPOP=2
MAXSQL=2
MAXSUB=0
OWNER=hosting
PLAN=SubWS
RS=x
STARTDATE=1085847520
SUSPENDTIME=1086171449

What we�re interested in changing is the RS value.

3) Changing the user theme
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 themes as some of our resellers are using an older skin.

replace RS=tree RS=x2 -- *

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

pico username


Then ctrl+w to search: type in RS

You should see the new Cpanel theme.