Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Tag Archives: CPanel

Where is CPanel Bandwidth Usage


Login to  CPanel server
Find View Bandwidth Usage under Account Information
or click on the link: https://111.111.111.111:2087/scripts/showbw

Advertisements

Cpanel Webalizer statistics without cpanel login


CPanel offers you the ability to check your website statistics with a program called webalizer. The problem with this system is that you are required to login via cpanel, and click through 2 diferent subsections in order to access them. This tutorial will guide you on the steps needed to make your webalizer statistics available via http://www.yoursite.com/stats/ .

Login to your hosting account via ssh. If you do not have ssh, ask your host to enable it. if they won’t enable it, ask them to read this tutorial, and run through these directions yourself.

Navigate to your public_html directory by running the following command

cd public_html

Once there, type the following:

vi .htaccess

once that loads, hit your i key, and type the following:

Options +FollowSymLinks

Once that is done, hit your Esc (escape) key, and type the following:

:wq

This will write to the .htaccess file, and quit.

Next, run the following command

ln -s ~/tmp/webalizer stats

you can replace the “stats” part of that command with name you want to use in order to access your website statistics.

After that, run the following commands

chmod 755 ~/tmp
chmod 755 ~/tmp/webalizer

now you can access http://www.yoursite.com/stats/ to access your webalizer statistics.

Enjoy

Unblocking IP address in Cpanel Server or Linux Command Line


You can unblock if from server shell console or from csf plugin if the serve is running cpanel.

For 125.214.71.115 in WHM under the Plugins section go to ConfigServer Security&Firewall.
Quick Allow tool should solve any blocking issues.

If the server is not running Cpane then from linux console run :
csf -a $IP
where $IP is IP you want to unblock and whitelist.

e.g:

root@secure [~]# csf -a 110.174.81.206
Removing 110.174.81.206 from csf.deny and iptables DROP…
DROP  all opt — in !lo out *  110.174.81.206  -> 0.0.0.0/0
DROP  all opt — in * out !lo  0.0.0.0/0  -> 110.174.81.206
Adding 110.174.81.206 to csf.allow and iptables ACCEPT…
ACCEPT  all opt — in !lo out *  110.174.81.206  -> 0.0.0.0/0
ACCEPT  all opt — in * out !lo  0.0.0.0/0  -> 110.174.81.206
root@secure [~]#

%d bloggers like this: