<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.qnap.com/mediawiki/index.php?title=AWStats&amp;feed=atom&amp;action=history</id>
	<title>AWStats - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.qnap.com/mediawiki/index.php?title=AWStats&amp;feed=atom&amp;action=history"/>
	<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=AWStats&amp;action=history"/>
	<updated>2022-08-31T16:12:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.qnap.com/mediawiki/index.php?title=AWStats&amp;diff=262&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Below's the installation guide for AWStats on QNAP NAS.   Please note the installation assumes minimum Linux shell skills via SSH/Telnet session.   '''Source(s):''' [http://do...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.qnap.com/mediawiki/index.php?title=AWStats&amp;diff=262&amp;oldid=prev"/>
		<updated>2015-06-18T07:31:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Below&amp;#039;s the installation guide for AWStats on QNAP NAS.   Please note the installation assumes minimum Linux shell skills via SSH/Telnet session.   &amp;#039;&amp;#039;&amp;#039;Source(s):&amp;#039;&amp;#039;&amp;#039; [http://do...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Below's the installation guide for AWStats on QNAP NAS. &lt;br /&gt;
&lt;br /&gt;
Please note the installation assumes minimum Linux shell skills via SSH/Telnet session. &lt;br /&gt;
&lt;br /&gt;
'''Source(s):''' [http://downloadranking.com AWStats solutions] &lt;br /&gt;
&lt;br /&gt;
== Download and install Perl (CLI)&amp;lt;br&amp;gt;  ==&lt;br /&gt;
&lt;br /&gt;
Please follow the [[Perl 5.8.8 Installation|guide]] to have Perl installed on your NAS first. &lt;br /&gt;
&lt;br /&gt;
'''Source(s):''' [http://downloadranking.com AWStats solutions] &lt;br /&gt;
&lt;br /&gt;
== Download and install AWStats  ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Download the latest AWStats installation file to '''/share/Public'''. The most current stable version up to date is v 6.7 ( [http://prdownloads.sourceforge.net/awstats/awstats-6.7.zip zip] / [http://prdownloads.sourceforge.net/awstats/awstats-6.7.tar.gz tar.gz] )&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''Source(s):''' [http://downloadranking.com AWStats solutions] &lt;br /&gt;
&lt;br /&gt;
=== Untar the archive and create the neccessary symbolic links  ===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Connect to the NAS box with putty.exe to execute the commands directly in the box. &lt;br /&gt;
&lt;br /&gt;
Use the admin username and password. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''NOTE: On this howto, the package is placed under the Public share, if you need it placed elsewhere, just change all the /share/Public references to your own liking.'''&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
'''It was in the former edition placed under HDA_ROOT, but after some time, you can experience disk full problems on the HDA_ROOT partition.''' &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Untar the file archive to /mnt/HDA_ROOT. &lt;br /&gt;
&lt;br /&gt;
'''Source(s):''' [http://downloadranking.com AWStats solutions]&amp;amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;507&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;0&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot; class=&amp;quot;FCK__ShowTableBorders&amp;quot; rules=&amp;quot;all&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;# cd /share/Public&lt;br /&gt;
# tar -zxvf /share/Public/awstats-6.7.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Rename the awstats directory: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;507&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;0&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot; class=&amp;quot;FCK__ShowTableBorders&amp;quot; rules=&amp;quot;all&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;# mv awstats-6.7 awstats&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Create a&amp;amp;nbsp;symbolic link&amp;amp;nbsp;under /usr/local&amp;amp;nbsp;to point to the actual location /mnt/HDA_ROOT/awstats: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;507&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;0&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot; class=&amp;quot;FCK__ShowTableBorders&amp;quot; rules=&amp;quot;all&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;# ln -s /share/Public/awstats /usr/local&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Create a folder 'db' under default awstats directory and for storing&amp;amp;nbsp;the database files then create a symbolic link 'awstats'&amp;amp;nbsp;under&amp;amp;nbsp;/var/lib&amp;amp;nbsp;to point&amp;amp;nbsp;to it: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;512&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;0&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot; class=&amp;quot;FCK__ShowTableBorders&amp;quot; rules=&amp;quot;all&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;# mkdir -p /usr/local/awstats/db &lt;br /&gt;
# ln -s /share/Public/awstats/db /var/lib/awstats&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Create a folder 'awstats' under&amp;amp;nbsp;/etc/config&amp;amp;nbsp;for storing&amp;amp;nbsp;the&amp;amp;nbsp;config files&amp;amp;nbsp;then create a symbolic link 'awstats'&amp;amp;nbsp;under&amp;amp;nbsp;/etc&amp;amp;nbsp;to point&amp;amp;nbsp;to it for ease of access: &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;507&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;0&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot; class=&amp;quot;FCK__ShowTableBorders&amp;quot; rules=&amp;quot;all&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;# mkdir -p /etc/config/awstats&lt;br /&gt;
# ln -s /etc/config/awstats /etc&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Now we need to make all these link to survive upon reboot &lt;br /&gt;
&lt;br /&gt;
Refer to the&amp;amp;nbsp;guide on [[Autorun.sh|editing the&amp;amp;nbsp;Autorun.sh]] file which will preserve your changes made above. Add the following&amp;amp;nbsp;symbolics we created&amp;amp;nbsp;at&amp;amp;nbsp;Step 3&amp;amp;nbsp;to the bottom of autorun.sh file: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;507&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;0&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot; class=&amp;quot;FCK__ShowTableBorders&amp;quot; rules=&amp;quot;all&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;## Awstats symbolic links&lt;br /&gt;
ln -sf /share/Public/awstats/db /var/lib/awstats &lt;br /&gt;
ln -sf /etc/config/awstats /etc &lt;br /&gt;
ln -sf /share/Public/awstats /usr/local&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Configuring AWStats step by step guide&amp;lt;br&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;Go to the 'tools' folder under the default awstats folder /usr/local/awstats&amp;amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;507&amp;quot; cellspacing=&amp;quot;5&amp;quot; cellpadding=&amp;quot;5&amp;quot; border=&amp;quot;0&amp;quot; bgcolor=&amp;quot;#ffffff&amp;quot; rules=&amp;quot;all&amp;quot; class=&amp;quot;FCK__ShowTableBorders&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;pre&amp;gt;# cd /usr/local/awstats/tools&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
and run:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;# perl awstats_configure.pl&amp;amp;nbsp;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
it should output on the console as below:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;----- AWStats awstats_configure 1.0 (build 1.7) (c) Laurent Destailleur ----- &lt;br /&gt;
This tool will help you to configure AWStats to analyze statistics for &lt;br /&gt;
one web server. You can try to use it to let it do all that is possible &lt;br /&gt;
in AWStats setup, however following the step by step manual setup &lt;br /&gt;
documentation (docs/index.html) is often a better idea. Above all if: &lt;br /&gt;
- You are not an administrator user, &lt;br /&gt;
- You want to analyze downloaded log files without web server, &lt;br /&gt;
- You want to analyze mail or ftp log files instead of web log files, &lt;br /&gt;
- You need to analyze load balanced servers log files, &lt;br /&gt;
- You want to 'understand' all possible ways to use AWStats... &lt;br /&gt;
Read the AWStats documentation (docs/index.html).&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
then you will be prompted:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;-----&amp;amp;gt; Running OS detected: Linux, BSD or Unix &lt;br /&gt;
Warning: AWStats standard directory on Linux OS is '/usr/local/awstats'. &lt;br /&gt;
If you want to use standard directory, you should first move all content &lt;br /&gt;
of AWStats distribution from current directory: &lt;br /&gt;
/mnt/HDA_ROOT/awstats &lt;br /&gt;
to standard directory: &lt;br /&gt;
/usr/local/awstats &lt;br /&gt;
And then, run configure.pl from this location. &lt;br /&gt;
Do you want to continue setup from this NON standard directory [yN]&amp;amp;nbsp;?&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
type in 'y' to accept the current directory.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
next you will be prompted:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;-----&amp;amp;gt; Check for web server install Enter full config file path of your Web server. &lt;br /&gt;
Example: /etc/httpd/httpd.conf &lt;br /&gt;
Example: /usr/local/apache2/conf/httpd.conf &lt;br /&gt;
Example: c:\Program files\apache group\apache\conf\httpd.conf &lt;br /&gt;
Config file path ('none' to skip web server setup):&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
type in: '/usr/local/apache/conf/apache.conf'&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
next you will be prompted:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;-----&amp;amp;gt; Need to create a new config file&amp;amp;nbsp;? &lt;br /&gt;
Do you want me to build a new AWStats config/profile &lt;br /&gt;
file (required if first install) [y/N]&amp;amp;nbsp;?&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
type in 'y' to build a new AWStats config/profile file.&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
next you will be prompted: &lt;br /&gt;
&amp;lt;pre&amp;gt;-----&amp;amp;gt; Define config file name to create &lt;br /&gt;
What is the name of your web site or profile analysis&amp;amp;nbsp;? &lt;br /&gt;
Example: www.mysite.com &lt;br /&gt;
Example: demo &lt;br /&gt;
Your web site, virtual server or profile name:&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
type in a name, I use ''''demo'''' in this how to (your web site, virtual server or profile name as it suggests)&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
next you will be prompted:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;-----&amp;amp;gt; Define config file path &lt;br /&gt;
In which directory do you plan to store your config file(s)&amp;amp;nbsp;? &lt;br /&gt;
Default: /etc/awstats &lt;br /&gt;
Directory path to store config file(s) (Enter for default):&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Just press 'ENTER' to accept the defaults (eg, /etc/awstats)&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
next you will be give a line of code for updating the records in a regular basis, choose the one suits you.&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;-----&amp;amp;gt; Add update process inside a scheduler &lt;br /&gt;
Sorry, configure.pl does not support automatic add to cron yet. &lt;br /&gt;
You can do it manually by adding the following command to your cron: &lt;br /&gt;
'''/mnt/HDA_ROOT/awstats/wwwroot/cgi-bin/awstats.pl -update -config=demo''' &lt;br /&gt;
Or if you have several config files and prefer having only one command: &lt;br /&gt;
'''/mnt/HDA_ROOT/awstats/tools/awstats_updateall.pl now''' &lt;br /&gt;
Press ENTER to continue...&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
and finally:&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;A SIMPLE config file has been created: /etc/awstats/awstats.demo.conf &lt;br /&gt;
You should have a look inside to check and change manually main parameters. &lt;br /&gt;
You can then manually update your statistics for 'demo' with command: '''&lt;br /&gt;
&amp;amp;gt; perl awstats.pl -update -config=demo''' &lt;br /&gt;
You can also read your statistics for 'ts409@home' with URL: &lt;br /&gt;
'''&amp;amp;gt; http://localhost/awstats/awstats.pl?config=demo''' Press ENTER to finish...&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;Don't forget to add the following line to your crontab under /etc/config for automatic site stats updates&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;gt;0 2 * * * /mnt/ext/usr/local/awstats/tools/awstats_updateall.pl now&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
'''Source(s):''' [http://downloadranking.com AWStats solutions]&amp;amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
=== Verify the installation&amp;lt;br&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Open up your internet browser and point it to the URL as below: &lt;br /&gt;
&lt;br /&gt;
'''Source(s):''' [http://downloadranking.com AWStats solutions] &lt;br /&gt;
&amp;lt;pre&amp;gt;http://your-nas-ip/awstats/awstats.pl?config=demo&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[Category:Web_Server_&amp;amp;_Applications_(Apache_+_PHP_+_MySQL_/_SQLite)|A]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>