Statistic software configuration for all the accounts
In this blog we are going to set up the Statistics software configuration for all the accounts structure for your users. This involves deciding which statistics packages to use and pre populating your user’s websites with create skeleton directory.
Let’s first see what is the use of Statistic Software Configuration?
The Statistic Software Configuration category in WHM allows you to control the software which is being used by the user and at the same time provides the statistics to your users.
This involves information regarding a status on how your server is handling the statistic generation. You can also schedule the configuration for processing frequency of the logs generated. It helps in decreasing the load on your server.
Let’s start and Follow the below steps:
Step 1 – Let’s go ahead and login to WHM.
Step 2 – Here we are in the WHM home interface.
Step 3 – Scroll down to ‘Server Configuration’ and click ‘statistics software configuration’. A new interface will appear.
Step 4 – In the statistics status summary section, select the ‘User to Display’ for all.
Step 5 – And click ‘Go’.
Can the system keep up with the processing statistics? Are there any issues with any of the accounts on the server? You will see them here.
Steps 6- Generator’s configuration section – This section allows you to select which statistics packages users will have available and which packages are active by default.
The Generator’s Configuration Section uses the boxes to configure Analog, AwStats, Logaholic and Weblizer for recording your server’s statistics. The cPanel users can also see them.
In the screenshot above, all four software options are selected and are made available to the cPanel users to view that statistics generated by them.
Check ‘Available to Users’ to make the generator available to the cPanel users before that they must enable the program in order to view their website’s statistics.
Allow Awstats configuration Include file:
If you want to customize a user’s configuration for Awstats then follow below steps:
- Check “Allow Awstats Configuration Include File.
- Add the configuration file to ~/tmp/awstats/ awstats.conf.include
Step 7 – In the Schedule configuration – you can change the frequency that your system processes for log files and the frequency that your system processes bandwidth data, unless your system is experiencing any heavy load to processing logs and bandwidth and backup. Leave these 2 settings unchanged.
Step 8 – Schedule Configuration – let’s you set once you process the logs and then with information.
For ex: if your server starts it overloaded with backups and statistics processing you can manage their schedules so they don’t overlap.
Step 9- Click ‘Save’.
Step 10 – Now that you are done with the statistics software configuration, the skeleton directory is where you can store files that you wish to distribute to all new accounts. The system will automatically copy anything that you put in this directory. To an account that you created through WHM’s create accounts interface.
Step 11 – Scroll down to ‘Account Functions’, and then click on the ‘skeleton directory’. Anew interface will appear.
The system will copy them to the corresponding home directory for new accounts.
Step 13 – Well let’s see I am in the SSH or command line, change to root:
# vi testfile.txt
I am just going to create a test file quickly and save it. Whenever I create a new account this file will automatically drop into their home directory