環境
- OS CentOS Linux release 7.6.1810 (Core)
- PHP PHP 7.3.2 (cli) (built: Feb 5 2019 13:10:03) ( NTS )
- MYSQL Server version: 5.7.25 MySQL Community Server (GPL)
- HTTPサーバ Apache/2.4.6 (CentOS)
前置き
以前は、Analogというアクセス解析ソフトを使っていた。
結構、使い勝手が良かったが、既にサイトは閉鎖されていてしまって入手不能な状態となっている。
そこで、AWStatsというアクセス解析ソフトを導入することにした。
AWSTATSパッケージのインストール
さて、さて、
yum search awstats
を実行しても、そんなパッケージはないよと。
調査を進めると、EPELパッケージに有るらしいので
yum --enablerepo=epel search awstats ========= N/S matched: awstats ============================= awstats.noarch : Advanced Web Statistics Name and summary matches only, use "search all" for everything.
これは、あった?のか。
進軍あるのみ、ていっ。
yum --enablerepo=epel install awstats (中略) Dependencies Resolved ======================================================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================================================== Installing: awstats noarch 7.7-1.el7 epel 2.3 M Installing for dependencies: perl-Business-ISBN noarch 2.06-2.el7 base 25 k perl-Business-ISBN-Data noarch 20120719.001-2.el7 base 24 k perl-CGI noarch 3.63-4.el7 base 250 k perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-Digest noarch 1.17-245.el7 base 23 k perl-Digest-HMAC noarch 1.03-5.el7 base 16 k perl-Digest-MD5 x86_64 2.52-3.el7 base 30 k perl-Digest-SHA x86_64 1:5.85-4.el7 base 58 k perl-Encode-Locale noarch 1.03-5.el7 base 16 k perl-FCGI x86_64 1:0.74-8.el7 base 42 k perl-File-Listing noarch 6.04-7.el7 base 13 k perl-Geo-IP x86_64 1.43-3.el7 epel 87 k perl-HTML-Parser x86_64 3.71-4.el7 base 115 k perl-HTML-Tagset noarch 3.20-15.el7 base 18 k perl-HTTP-Cookies noarch 6.01-5.el7 base 26 k perl-HTTP-Daemon noarch 6.01-8.el7 base 21 k perl-HTTP-Date noarch 6.02-8.el7 base 14 k perl-HTTP-Message noarch 6.06-6.el7 base 82 k perl-HTTP-Negotiate noarch 6.01-5.el7 base 17 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-IO-HTML noarch 1.00-2.el7 base 23 k perl-IO-Socket-IP noarch 0.21-5.el7 base 36 k perl-IO-Socket-SSL noarch 1.94-7.el7 base 115 k perl-LWP-MediaTypes noarch 6.02-2.el7 base 24 k perl-Mozilla-CA noarch 20130114-5.el7 base 11 k perl-Net-DNS x86_64 0.72-6.el7 base 308 k perl-Net-HTTP noarch 6.06-2.el7 base 29 k perl-Net-IP noarch 1.26-4.el7 epel 36 k perl-Net-LibIDN x86_64 0.12-15.el7 base 28 k perl-Net-SSLeay x86_64 1.55-6.el7 base 285 k perl-Switch noarch 2.16-7.el7 base 22 k perl-TimeDate noarch 1:2.30-2.el7 base 52 k perl-URI noarch 1.60-9.el7 base 106 k perl-WWW-RobotRules noarch 6.02-5.el7 base 18 k perl-libwww-perl noarch 6.05-2.el7 base 205 k Transaction Summary ======================================================================================================================================================================================================== Install 1 Package (+36 Dependent packages) Total download size: 4.8 M Installed size: 13 M Is this ok [y/d/N]: y Downloading packages: (1/37): perl-Business-ISBN-Data-20120719.001-2.el7.noarch.rpm | 24 kB 00:00:00 (2/37): perl-Business-ISBN-2.06-2.el7.noarch.rpm | 25 kB 00:00:00 (3/37): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:00 (4/37): perl-Digest-1.17-245.el7.noarch.rpm | 23 kB 00:00:00 (5/37): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00:00 (6/37): perl-CGI-3.63-4.el7.noarch.rpm | 250 kB 00:00:00 (7/37): perl-Digest-HMAC-1.03-5.el7.noarch.rpm | 16 kB 00:00:00 (8/37): perl-Encode-Locale-1.03-5.el7.noarch.rpm | 16 kB 00:00:00 (9/37): perl-Digest-SHA-5.85-4.el7.x86_64.rpm | 58 kB 00:00:00 (10/37): perl-Digest-MD5-2.52-3.el7.x86_64.rpm | 30 kB 00:00:00 (11/37): perl-File-Listing-6.04-7.el7.noarch.rpm | 13 kB 00:00:00 (12/37): perl-FCGI-0.74-8.el7.x86_64.rpm | 42 kB 00:00:00 (13/37): awstats-7.7-1.el7.noarch.rpm | 2.3 MB 00:00:00 (14/37): perl-HTML-Tagset-3.20-15.el7.noarch.rpm | 18 kB 00:00:00 (15/37): perl-HTTP-Cookies-6.01-5.el7.noarch.rpm | 26 kB 00:00:00 (16/37): perl-HTTP-Daemon-6.01-8.el7.noarch.rpm | 21 kB 00:00:00 (17/37): perl-HTTP-Date-6.02-8.el7.noarch.rpm | 14 kB 00:00:00 (18/37): perl-HTML-Parser-3.71-4.el7.x86_64.rpm | 115 kB 00:00:00 (19/37): perl-HTTP-Negotiate-6.01-5.el7.noarch.rpm | 17 kB 00:00:00 (20/37): perl-HTTP-Message-6.06-6.el7.noarch.rpm | 82 kB 00:00:00 (21/37): perl-Geo-IP-1.43-3.el7.x86_64.rpm | 87 kB 00:00:00 (22/37): perl-IO-Socket-IP-0.21-5.el7.noarch.rpm | 36 kB 00:00:00 (23/37): perl-IO-HTML-1.00-2.el7.noarch.rpm | 23 kB 00:00:00 (24/37): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:00 (25/37): perl-IO-Socket-SSL-1.94-7.el7.noarch.rpm | 115 kB 00:00:00 (26/37): perl-LWP-MediaTypes-6.02-2.el7.noarch.rpm | 24 kB 00:00:00 (27/37): perl-Mozilla-CA-20130114-5.el7.noarch.rpm | 11 kB 00:00:00 (28/37): perl-Net-HTTP-6.06-2.el7.noarch.rpm | 29 kB 00:00:00 (29/37): perl-Net-DNS-0.72-6.el7.x86_64.rpm | 308 kB 00:00:00 (30/37): perl-Net-LibIDN-0.12-15.el7.x86_64.rpm | 28 kB 00:00:00 (31/37): perl-Net-IP-1.26-4.el7.noarch.rpm | 36 kB 00:00:00 (32/37): perl-Switch-2.16-7.el7.noarch.rpm | 22 kB 00:00:00 (33/37): perl-TimeDate-2.30-2.el7.noarch.rpm | 52 kB 00:00:00 (34/37): perl-URI-1.60-9.el7.noarch.rpm | 106 kB 00:00:00 (35/37): perl-WWW-RobotRules-6.02-5.el7.noarch.rpm | 18 kB 00:00:00 (36/37): perl-Net-SSLeay-1.55-6.el7.x86_64.rpm | 285 kB 00:00:00 (37/37): perl-libwww-perl-6.05-2.el7.noarch.rpm | 205 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 5.8 MB/s | 4.8 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 1/37 Installing : perl-LWP-MediaTypes-6.02-2.el7.noarch 2/37 Installing : perl-Digest-1.17-245.el7.noarch 3/37 Installing : perl-Digest-MD5-2.52-3.el7.x86_64 4/37 Installing : perl-IO-Socket-IP-0.21-5.el7.noarch 5/37 Installing : perl-Encode-Locale-1.03-5.el7.noarch 6/37 Installing : 1:perl-Digest-SHA-5.85-4.el7.x86_64 7/37 Installing : perl-Digest-HMAC-1.03-5.el7.noarch 8/37 Installing : perl-Net-DNS-0.72-6.el7.x86_64 9/37 Installing : perl-HTML-Tagset-3.20-15.el7.noarch 10/37 Installing : perl-Net-LibIDN-0.12-15.el7.x86_64 11/37 Installing : perl-Net-IP-1.26-4.el7.noarch 12/37 Installing : perl-Switch-2.16-7.el7.noarch 13/37 Installing : 1:perl-TimeDate-2.30-2.el7.noarch 14/37 Installing : perl-HTTP-Date-6.02-8.el7.noarch 15/37 Installing : perl-File-Listing-6.04-7.el7.noarch 16/37 Installing : perl-Net-SSLeay-1.55-6.el7.x86_64 17/37 Installing : perl-IO-HTML-1.00-2.el7.noarch 18/37 Installing : 1:perl-FCGI-0.74-8.el7.x86_64 19/37 Installing : perl-CGI-3.63-4.el7.noarch 20/37 Installing : perl-Business-ISBN-Data-20120719.001-2.el7.noarch 21/37 Installing : perl-Business-ISBN-2.06-2.el7.noarch 22/37 Installing : perl-URI-1.60-9.el7.noarch 23/37 Installing : perl-WWW-RobotRules-6.02-5.el7.noarch 24/37 Installing : perl-Mozilla-CA-20130114-5.el7.noarch 25/37 Installing : perl-IO-Socket-SSL-1.94-7.el7.noarch 26/37 Installing : perl-Geo-IP-1.43-3.el7.x86_64 27/37 Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 28/37 Installing : perl-IO-Compress-2.061-2.el7.noarch 29/37 Installing : perl-HTTP-Message-6.06-6.el7.noarch 30/37 Installing : perl-HTML-Parser-3.71-4.el7.x86_64 31/37 Installing : perl-HTTP-Daemon-6.01-8.el7.noarch 32/37 Installing : perl-HTTP-Cookies-6.01-5.el7.noarch 33/37 Installing : perl-HTTP-Negotiate-6.01-5.el7.noarch 34/37 Installing : perl-Net-HTTP-6.06-2.el7.noarch 35/37 Installing : perl-libwww-perl-6.05-2.el7.noarch 36/37 Installing : awstats-7.7-1.el7.noarch 37/37 Verifying : 1:perl-Digest-SHA-5.85-4.el7.x86_64 1/37 Verifying : perl-HTTP-Daemon-6.01-8.el7.noarch 2/37 Verifying : perl-Business-ISBN-2.06-2.el7.noarch 3/37 Verifying : perl-HTTP-Cookies-6.01-5.el7.noarch 4/37 Verifying : perl-IO-Compress-2.061-2.el7.noarch 5/37 Verifying : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 6/37 Verifying : perl-HTML-Parser-3.71-4.el7.x86_64 7/37 Verifying : perl-LWP-MediaTypes-6.02-2.el7.noarch 8/37 Verifying : perl-WWW-RobotRules-6.02-5.el7.noarch 9/37 Verifying : perl-Digest-MD5-2.52-3.el7.x86_64 10/37 Verifying : perl-Geo-IP-1.43-3.el7.x86_64 11/37 Verifying : perl-HTTP-Date-6.02-8.el7.noarch 12/37 Verifying : perl-HTTP-Message-6.06-6.el7.noarch 13/37 Verifying : perl-Encode-Locale-1.03-5.el7.noarch 14/37 Verifying : perl-IO-Socket-SSL-1.94-7.el7.noarch 15/37 Verifying : perl-Mozilla-CA-20130114-5.el7.noarch 16/37 Verifying : perl-Business-ISBN-Data-20120719.001-2.el7.noarch 17/37 Verifying : perl-Net-DNS-0.72-6.el7.x86_64 18/37 Verifying : perl-IO-Socket-IP-0.21-5.el7.noarch 19/37 Verifying : perl-Digest-HMAC-1.03-5.el7.noarch 20/37 Verifying : perl-HTTP-Negotiate-6.01-5.el7.noarch 21/37 Verifying : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 22/37 Verifying : perl-libwww-perl-6.05-2.el7.noarch 23/37 Verifying : 1:perl-FCGI-0.74-8.el7.x86_64 24/37 Verifying : perl-IO-HTML-1.00-2.el7.noarch 25/37 Verifying : perl-CGI-3.63-4.el7.noarch 26/37 Verifying : perl-Net-HTTP-6.06-2.el7.noarch 27/37 Verifying : perl-Net-SSLeay-1.55-6.el7.x86_64 28/37 Verifying : 1:perl-TimeDate-2.30-2.el7.noarch 29/37 Verifying : perl-Switch-2.16-7.el7.noarch 30/37 Verifying : perl-Net-IP-1.26-4.el7.noarch 31/37 Verifying : awstats-7.7-1.el7.noarch 32/37 Verifying : perl-Net-LibIDN-0.12-15.el7.x86_64 33/37 Verifying : perl-Digest-1.17-245.el7.noarch 34/37 Verifying : perl-HTML-Tagset-3.20-15.el7.noarch 35/37 Verifying : perl-URI-1.60-9.el7.noarch 36/37 Verifying : perl-File-Listing-6.04-7.el7.noarch 37/37 Installed: awstats.noarch 0:7.7-1.el7 Dependency Installed: perl-Business-ISBN.noarch 0:2.06-2.el7 perl-Business-ISBN-Data.noarch 0:20120719.001-2.el7 perl-CGI.noarch 0:3.63-4.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-Digest.noarch 0:1.17-245.el7 perl-Digest-HMAC.noarch 0:1.03-5.el7 perl-Digest-MD5.x86_64 0:2.52-3.el7 perl-Digest-SHA.x86_64 1:5.85-4.el7 perl-Encode-Locale.noarch 0:1.03-5.el7 perl-FCGI.x86_64 1:0.74-8.el7 perl-File-Listing.noarch 0:6.04-7.el7 perl-Geo-IP.x86_64 0:1.43-3.el7 perl-HTML-Parser.x86_64 0:3.71-4.el7 perl-HTML-Tagset.noarch 0:3.20-15.el7 perl-HTTP-Cookies.noarch 0:6.01-5.el7 perl-HTTP-Daemon.noarch 0:6.01-8.el7 perl-HTTP-Date.noarch 0:6.02-8.el7 perl-HTTP-Message.noarch 0:6.06-6.el7 perl-HTTP-Negotiate.noarch 0:6.01-5.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-IO-HTML.noarch 0:1.00-2.el7 perl-IO-Socket-IP.noarch 0:0.21-5.el7 perl-IO-Socket-SSL.noarch 0:1.94-7.el7 perl-LWP-MediaTypes.noarch 0:6.02-2.el7 perl-Mozilla-CA.noarch 0:20130114-5.el7 perl-Net-DNS.x86_64 0:0.72-6.el7 perl-Net-HTTP.noarch 0:6.06-2.el7 perl-Net-IP.noarch 0:1.26-4.el7 perl-Net-LibIDN.x86_64 0:0.12-15.el7 perl-Net-SSLeay.x86_64 0:1.55-6.el7 perl-Switch.noarch 0:2.16-7.el7 perl-TimeDate.noarch 1:2.30-2.el7 perl-URI.noarch 0:1.60-9.el7 perl-WWW-RobotRules.noarch 0:6.02-5.el7 perl-libwww-perl.noarch 0:6.05-2.el7 Complete!
perlでかかれているらしく、変なパッケージを山ほどインストールしてくれました。ありがとう。
その後のインストール方法を、学習してみるけど、反吐が出て嫌になったので終了。
やっぱりAnalogだよねー
まずはrpmパッケージのインストールである
面倒くさいのはこまる。
というわけで以前使っていたanalogを使うことにする。
手元にあるのは、analog-6.0.4-1.x86_64.rpm
CentOS6で使っていたものだ。CentOS7でうまく動いてくれるのか。
rpm -ivh analog-6.0.4-1.x86_64.rpm
とりあえず、エラーも出ずにインストールされたようだ。
でもね、この後どうするんだっけ。
https://qiita.com/iorionda/items/8fc4d11c0ce8bd406b9f
http://www.miloweb.net/analog.html