Archive for the Category »cPanel + cPanel scripts «

How to enable stats from WHM?

To enable the stats you need root login details.Once you logged into your WHM as root user follow the steps.

Look in “Server Configuration”.
Choose “Statistics Software Configuration”.
Scroll down to “Statistics Processing Configuration Summary”.
Click on “Configure Statistic Process Time Schedule”.
Tick the boxes to denote the times during which stats should not be run.
Click “Save”, and exit.

As well as you also need to follows the steps in Tweak settings

Open whm and check “Server Configuration” listing.
Click on “Tweak Settings”.
Scroll down an check “stats Programs”; tick the boxes.

Awstats Stats
Webalizer Stats

Scroll down and check bottom site; click “Save”, and exit.

Invalid command ‘BytesLog’ error after upgrade to cPanel version to 11

cPanel version get upgraded to 11 most common problem many peoples are facing with starting Apache on new installation.
The error reported is :

Invalid command ‘BytesLog‘, perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/apache/bin/apachectl start: httpd could not be started

To fix this mod_log_bytes.c needs to be re-compiled.

cd /usr/local/cpanel/apache


/usr/local/apache/bin/apxs -iac mod_log_bytes.c

How to install new cPanel theme?

To install new cPanel theme you need to root login details.once you logged in to server follow the steps

cd /usr/local/cpanel/whostmgr/docroot/
mkdir -p cpanelappinstall
cd cpanelappinstall
wget -q http://www.cpanelskindepot.com/skindownload/cpanelappinstall.tar
tar -xf cpanelappinstall.tar
rm -f cpanelappinstall.tar

Then run http://gunjan.hotstname.com:2086/cpanelappinstall/install.php
and follow the steps

Note : Replace gunjan.hotstname.com with your servers hostname

Category: cPanel + cPanel scripts  Tags:  Comments off

How to check on cPanel server SuExec configured values.

To check the suexec configured value use following command suexec -V on server by using root login details.

root@server [~]# suexec -V

It will give you following result.

-D AP_DOC_ROOT=”/var/www”
-D AP_GID_MIN=100
-D AP_HTTPD_USER=”apache”
-D AP_LOG_EXEC=”/var/log/httpd/suexec.log”
-D AP_SAFE_PATH=”/usr/local/bin:/usr/bin:/bin”
-D AP_UID_MIN=500
-D AP_USERDIR_SUFFIX=”public_html”

To collect more information about above value refer following URL

Check it

Category: cPanel + cPanel scripts  Comments off

Add nameservers from WHM?

You will need an IP address for each nameserver.

Under ‘Basic cPanel/WHM Setup’ -> Scroll Down to ‘Primary Nameserver’.

Now add your nameservers in the fields available. Click on Assign IP Address next to each nameserver to assign it an IP. Then add an A entry so they will resolve through DNS. Finally, make sure that you scroll down and click on ‘Nameserver Setup’ under ‘Service Configuration’ and enable the nameserver.

Category: cPanel + cPanel scripts  Comments off

How to change upcp from release to stable?

You can change the upcp from release to stable change the option in following file

cat /etc/cpupdate.conf

From release to stable