# wget ''
# tar xzvf awstats-7.6.tar.gz 
# mv awstats-7.6 /usr/share/awstats

# cp -p /usr/share/awstats/awstats-7.6/tools/nginx/awstats-fcgi.php /usr/share/awstats/wwwroot/cgi-bin/
# mkdir /var/lib/awstats
# chmod -R 755 /usr/share/awstats/



# perl /usr/share/awstats/tools/

----- AWStats awstats_configure 1.0 (build 20140126) (c) Laurent Destailleur -----

This tool will help you to configure AWStats to analyze statistics for

one web server. You can try to use it to let it do all that is possible

in AWStats setup, however following the step by step manual setup

documentation (docs/index.html) is often a better idea. Above all if:

- You are not an administrator user,

- You want to analyze downloaded log files without web server,

- You want to analyze mail or ftp log files instead of web log files,

- You need to analyze load balanced servers log files,

- You want to 'understand' all possible ways to use AWStats...

Read the AWStats documentation (docs/index.html).

-----> Running OS detected: Linux, BSD or Unix

Warning: AWStats standard directory on Linux OS is '/usr/local/awstats'.

If you want to use standard directory, you should first move all content

of AWStats distribution from current directory:


to standard directory:


And then, run from this location.

Do you want to continue setup from this NON standard directory [yN] ? y


これが終われば/etc/awstats/awstats.(プロファイル名).confの設定ファイルが出来ているので ログファイルなどのパスをnginx向けのものに変えます


最後にawstats.plを実行すれば、https://localhost/cgi-bin/プロファイル名) を開くとアクセスログを表示することが出来ます。

perl /usr/share/awstats/wwwroot/cgi-bin/ -output=pagetype -config=(プロファイル名)