Install and configure awstats statistics in nginx environment

wget http://awstats.sourceforge.net/files/awstats-7.0.tar.gz tar -zxvf awstats-7.0.tar.gz mv awstats-7.0 /usr/local/awstats chown -R root:root /usr/local/awstats chmod -R =rwX /usr/local/awstats chmod +x /usr/local/awstats/tools/*.pl chmod +x /usr/local/awstats/wwwroot/cgi-bin/*.pl cd /usr/local/awstats/tools ./awstats_configure.pl # Now enter the configuration file, follow the input below # none (I am nginx here, not apache, so it is none) # y (create a new configuration file) # firefoxbug (based on what domain name) # #A SIMPLE config file has been created: /etc/awstats/awstats.firefoxbug.conf #You should have a look inside to check and change manually main parameters. #You can then manually update your statistics for ‘firefoxbug’ with command: #> perl awstats.pl -update -cOnfig=firefoxbug #You can also build static report pages for ‘firefoxbug’ with command: #> perl awstats.pl -output=pagetype -cOnfig=firefoxbug #—–> Create config file ‘/etc/awstats/awstats.firefoxbug.conf’ # Config file /etc/awstats/awstats.firefoxbug.conf create The above steps will generate a configuration file by default ==>> /etc/awstats/awstats.firefoxbug.conf Naming rules for the awstats configuration file: awstats.website.conf modify configuration file # vim /etc/awstats/awstats.firefoxbug.conf # LogFile=”/var/log/httpd/mylog.log” ==>> LogFile=”/path/to/you_website_log_path” Create a database storage directory for awstats statistical results mkdir -p /var/lib/awstats /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -cOnfig=firefoxbug awstats.pl will read the parameters in -config and expand firefoxbug to awstats.firefoxbug.conf Go to the /etc/awstats directory or the current directory to search, and run the program according to the…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索