Ubuntu 如何在OpenLiteSpeed WebAdmin中使用awstats?
是否可以在OpenLiteSpeed中安装AWstats日志分析器 我在2015年的文档中找不到Ubuntu 如何在OpenLiteSpeed WebAdmin中使用awstats?,ubuntu,awstats,openlitespeed,Ubuntu,Awstats,Openlitespeed,是否可以在OpenLiteSpeed中安装AWstats日志分析器 我在2015年的文档中找不到lsws/admin/misc/awstats\u install.sh脚本: 因此,我在我的Ubuntu droplet上使用sudo apt install AWstats手动安装了AWstats,但是我缺少了如何在OpenLiteSpeed WebAdmin中显示图表的链接 谢谢我刚刚做了一个粗略的设置,手动设置AwStats似乎可以在我的OpenLiteSpeed web服务器上运行 安装A
lsws/admin/misc/awstats\u install.sh
脚本:
因此,我在我的Ubuntu droplet上使用sudo apt install AWstats
手动安装了AWstats,但是我缺少了如何在OpenLiteSpeed WebAdmin中显示图表的链接
谢谢我刚刚做了一个粗略的设置,手动设置AwStats似乎可以在我的OpenLiteSpeed web服务器上运行
sudo apt安装AwStats
,您已经安装了- 包括“/etc/awstats/awstats.conf.local”
- LogFile=“/var/www/html/logs/access.log”
- SiteDomain=“example.com”
- HostAlias=“example.com localhost 127.0.0.1”
- AllowToUpdateStatsFromBrowser=1
/usr/lib/cgi-bin/awstats.pl -config=example.com -update
示例返回:
From data in log file "/var/www/html/logs/access.log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 50)
Jumped lines in file: 50
Found 50 already parsed records.
Parsed lines in file: 146
Found 0 dropped records,
Found 0 comments,
Found 0 blank records,
Found 0 corrupted records,
Found 0 old records,
Found 146 new qualified records.
如果输出中没有错误,我们可以开始设置Awstats显示
ln -sf /usr/lib/cgi-bin /var/www/html/cgi-bin
ln -sf /usr/share/awstats/icon/* /var/www/html/awstats-icon
导航到端口7080>虚拟主机>名称>上下文的Web管理员,然后创建CGI上下文
- URI=/cgi-bin/
- Path=/var/www/html/cgi-bin