{"id":585,"date":"2024-10-29T12:48:51","date_gmt":"2024-10-29T12:48:51","guid":{"rendered":"https:\/\/249host.com\/tutorials\/?p=585"},"modified":"2024-10-29T12:48:51","modified_gmt":"2024-10-29T12:48:51","slug":"install-awstats-on-direct-admin-server","status":"publish","type":"post","link":"https:\/\/249host.com\/tutorials\/install-awstats-on-direct-admin-server\/","title":{"rendered":"Install Awstats on Direct admin Server"},"content":{"rendered":"<h3><strong>Install AWStats In DirectAdmin<\/strong><\/h3>\n<p>AWStats is an open-source server-based website log analysis tool that is suited for analyzing information from Internet services like the <a href=\"https:\/\/www.squarebrothers.com\/\" target=\"_blank\" rel=\"noopener\">web<\/a>, streaming media, mail, and FTP servers with packages readily accessible for the majority of <a href=\"https:\/\/www.redhat.com\/en\/topics\/linux\/whats-the-best-linux-distro-for-you\" target=\"_blank\" rel=\"noopener\">Linux distributions<\/a>. It is not a per-domain setting, but rather a global on\/off switch.<\/p>\n<p>Today we will explore more about integrating AWStats into DirectAdmin.<\/p>\n<h4 class=\"nitro-offscreen\"><strong>Downloading And Installing AWStats In DirectAdmin<\/strong><\/h4>\n<p class=\"nitro-offscreen\">In order to download and install the tool to the DirectAdmin, we can run the following command:<\/p>\n<pre class=\"nitro-offscreen\">cd \/usr\/local\/directadmin\/scripts\r\n.\/awstats.sh\r\n<\/pre>\n<p>You can also check the awstats in custom-build using options.conf<\/p>\n<pre>cd \/usr\/local\/directadmin\/custombuild\r\n.\/build set awstats yes\r\n.\/build set webalizer no\r\n.\/build awstats<\/pre>\n<p class=\"nitro-offscreen\">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<\/p>\n<p>If we want both,we can then override it. Also, insert AWStats as static HTML pages into:<\/p>\n<pre>\/home\/user\/domains\/domain.com\/awstats<\/pre>\n<p>And store the config and tally data in:<\/p>\n<pre>\/home\/user\/domains\/domain.com\/awstats\/.data<\/pre>\n<p><strong>Benefits Of AWStats In DirectAdmin<\/strong><\/p>\n<p>Some of the benefits we can consider include:<\/p>\n<ul>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>The benefit of storing the data in \/home\/user is that users can take it with them when they are relocating their accounts.<br \/>\nWhile creating the link, the ..\/stats symbolic link on the domain stats page will point to ..\/awstats.<\/li>\n<\/ul>\n<p>Rather than being termed a disadvantage, I believe the following points as a reminder to keep in mind when using AWStats in DirectAdmin.<\/p>\n<ul>\n<li>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.<\/li>\n<li>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.<\/li>\n<li>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.<\/li>\n<\/ul>\n<p><strong>Enable AWStats In DirectAdmin using GUI.<\/strong><\/p>\n<p>Login to Direct admin panel,<\/p>\n<p>1.goto custom-build &gt;&gt;options<\/p>\n<p>2.statistics settings you can see awstats you can see the default option set as No, changed to Yes and save\/update settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-589 size-full\" src=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstasts.png\" alt=\"Install Awstats\" width=\"1889\" height=\"510\" srcset=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstasts.png 1889w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstasts-300x81.png 300w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstasts-1024x276.png 1024w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstasts-768x207.png 768w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstasts-1536x415.png 1536w\" sizes=\"auto, (max-width: 1889px) 100vw, 1889px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-590 size-full\" src=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstatw2.png\" alt=\"Install Awstats\" width=\"1884\" height=\"323\" srcset=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstatw2.png 1884w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstatw2-300x51.png 300w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstatw2-1024x176.png 1024w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstatw2-768x132.png 768w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstatw2-1536x263.png 1536w\" sizes=\"auto, (max-width: 1884px) 100vw, 1884px\" \/><\/p>\n<p>Update the settings, than go to build , there you can see Awstats update. &gt;&gt;update All.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-592\" src=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats3.png\" alt=\"\" width=\"1891\" height=\"450\" srcset=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats3.png 1891w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats3-300x71.png 300w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats3-1024x244.png 1024w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats3-768x183.png 768w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats3-1536x366.png 1536w\" sizes=\"auto, (max-width: 1891px) 100vw, 1891px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-593 size-full\" src=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats4.png\" alt=\"Install Awstats\" width=\"1887\" height=\"844\" srcset=\"https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats4.png 1887w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats4-300x134.png 300w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats4-1024x458.png 1024w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats4-768x344.png 768w, https:\/\/249host.com\/tutorials\/wp-content\/uploads\/2024\/10\/awstats4-1536x687.png 1536w\" sizes=\"auto, (max-width: 1887px) 100vw, 1887px\" \/><\/p>\n<p class=\"nitro-offscreen\">AWStats was successfully build and installed. Now you can use it to see website traffics.<\/p>\n<p>If you would like to create admin user account in direct admin panel <a href=\"https:\/\/249host.com\/tutorials\/create-user-account-in-da\/\">click<\/a> to know it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6,10,1],"tags":[],"class_list":["post-585","post","type-post","status-publish","format-standard","hentry","category-control-panel","category-direct-admin","category-general","category-linux"],"_links":{"self":[{"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/comments?post=585"}],"version-history":[{"count":9,"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/posts\/585\/revisions"}],"predecessor-version":[{"id":598,"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/posts\/585\/revisions\/598"}],"wp:attachment":[{"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/media?parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/categories?post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/249host.com\/tutorials\/wp-json\/wp\/v2\/tags?post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}