Search Results for: awstat

access awstat outside cpanel

AwStats is one of  favorite web statistics tool that is widely used.  Generally awstats are accessed from cPanel >> Awstata.

But suppose you do not want to give cpanel access to client and he wants to view awstats then you can refer to following steps thet will guide you how to setup a awstats which can be accessed with URL: http://domainname/stats/

1) Ssh server with root and go to users home directory and creatte a directory names stats under public_html

2) Now download awstats latest stable version from here

3) Unzip file and copy contents from awstats-*.*/wwwroot/cgi-bin to stats directory that you have created.

4) Change permission on and to 755

5) Now copy configuration (for domain) file for awstats, i.e  for cpanel users it is located under users home directory /tmp/awstats/awstats.[your website].conf to the stats directory that you have created.

6) Copy awstats-*.*/wwwroot/icon to public_html/images/awstats If  directory images and awstats are not created then create them.

You are all done now.  access URL:

And you will see awstats

Post to Twitter

Disable stats on cpanel

If you are on a cPanel server and web stats are consuming more disk space then you can disable them.

To disable it, Ssh to server as root

Edit cPanel configuration file.

root@server[~]#vi /var/cpanel/cpanel.config

And make following changes.


save changes and restart cPanel server.

root@server[~]#/etc/init.d/cpanel restart

Post to Twitter

Cpanel scripts and their use.

1 )Updates the server software:

2) Reinstalls exim:

3) Bandwidth issues

4) To fix problem in webalizer that stop updating stats

5) Self Explanatory

6)Fixing Mail List MailMan

7) Run cpanel backup

8) To try and fix domain controller

9) Quotas

/scripts/initquotas – takes a while to run
/scripts/fixquotas – takes a while to run

10) Add a Dns Entry

11) Install Frontpage Mail Exts

12) Add JavaServlets to an account (jsp plugin required)

13) Add a User

14) Run WHM Lite

15) Add Rlimits (cpu and mem limits) to apache

16) Resync with a master DNS Server

17) Edit A User’s Quota

18) Search For Trojans in /dev

19) Locate Trojan Horses

20) Suggest Usage
/scripts/findtrojans > /var/log/trojans
/scripts/fixtrojans /var/log/trojans

21) Make Interchange work with suexec

22) Fix Most Problems with Interchange

23) Run on a trojans horse file created by findtrojans to remove them

24) Run this if a user’s stats stop working

25) Fix a broken valias file

26) Turn on DMA and 32bit IDE hard drive access (once per boot)

27) Re-scan quotas. Usually fixes Disk space display problems

28) Turn on SUEXEC (probably a bad idea)

29) Display Ipusage Report

29) Terminate an Account

30) Delete “Security Problem Infested RPMS”

31) Fix Various Mail Permission Problems

32) Attempt to Troubleshoot a Mail Problem

33) Change a Mysql Password

34) Kill Potential Security Problem Services

35) Rebuild Ip Address Pool

36) Delete Nasty SSL entry in apache default httpd.conf

37) Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)
/scripts/restartsrv (example: /scripts/restartsrv httpd)

38) Syncup Security Updates from RedHat/Mandrake

39) Force a webalizer/analog update

40) Remove non-important suid binaries

41) Install Frontpage 4+ on an account

42) Return a Simple process list. Useful for finding where cgi scripts are running from

43) Suspend an account

44) Syncup Cpanel RPM Updates

45) Unblock an IP

46) UnSuspend an account

47) Update Cpanel

48) Update /scripts

49) Create a New Account

50) Awstats to run manually
/scripts/runweblogs account_username

Post to Twitter