Install AWStats In DirectAdmin
AWStats is an open-source server-based website log analysis tool that is suited for analyzing information from Internet services like the web, streaming media, mail, and FTP servers with packages readily accessible for the majority of Linux distributions. It is not a per-domain setting, but rather a global on/off switch.
Today we will explore more about integrating AWStats into DirectAdmin.
Downloading And Installing AWStats In DirectAdmin
In order to download and install the tool to the DirectAdmin, we can run the following command:
cd /usr/local/directadmin/scripts ./awstats.sh
You can also check the awstats in custom-build using options.conf
cd /usr/local/directadmin/custombuild ./build set awstats yes ./build set webalizer no ./build awstats
This command will download and install the AWStats setup. It then adds awstats=1 and webalizer=0 to the directadmin.conf. The webalizer=0 code will shut off the Webalizer
If we want both,we can then override it. Also, insert AWStats as static HTML pages into:
/home/user/domains/domain.com/awstats
And store the config and tally data in:
/home/user/domains/domain.com/awstats/.data
Benefits Of AWStats In DirectAdmin
Some of the benefits we can consider include:
- The integrated AWStats has a security advantage over many plugins. With this configuration, files are chowned to root and chmod to a minimal setting making things safe, secure, and private.
- Subdomains will have their AWStats page with this configuration. DirectAdmin will also parse the AWStats data files to retrieve the bandwidth for the subdomains, thus as long as the parsing continues, the bandwidth for each subdomain will appear in DA on the subdomains page.
- The benefit of storing the data in /home/user is that users can take it with them when they are relocating their accounts.
While creating the link, the ../stats symbolic link on the domain stats page will point to ../awstats.
Rather than being termed a disadvantage, I believe the following points as a reminder to keep in mind when using AWStats in DirectAdmin.
- The way the configuration of log names in config files makes the rotation of Apache logs slightly different during the tally. Renaming all logs to .log prior to the tally will not occur. However, processing of logs will be in place.
- This has the consequence of not sending a HUP to the master httpd process right before the tally. Also, Truncating logs is preferable rather than erasing logs during the cycle for each user.
- Testers should keep a watch on the implications of truncating a live log without immediately restarting Apache. It will most likely be OK. Also, Apache will restart post-tally as usual.
Enable AWStats In DirectAdmin using GUI.
Login to Direct admin panel,
1.goto custom-build >>options
2.statistics settings you can see awstats you can see the default option set as No, changed to Yes and save/update settings.
Update the settings, than go to build , there you can see Awstats update. >>update All.
AWStats was successfully build and installed. Now you can use it to see website traffics.
If you would like to create admin user account in direct admin panel click to know it.