是否可以在OpenLiteSpeed中安装AWstats日志分析器?
我在2015年的文档中找不到lsws/admin/misc/awstats_install.sh
脚本:https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:awstats
所以我在我的Ubuntu droplet上使用sudo apt install awstats
手动安装了AWstats,但是我错过了如何在OpenLiteSpeed WebAdmin中显示图表的链接。
谢谢
发布于 2021-01-06 15:49:13
我刚刚做了一个粗略的设置,手动设置AwStats似乎可以在我的OpenLiteSpeed web服务器上工作。
sudo apt install awstats
。注意,请确保将example.com域名和访问日志路径替换为您自己的设置。
构建从当前日志生成的初始统计数据,
/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显示
将cgi-bin和图标的symlink添加到文档根目录
ln -sf /usr/lib/cgi-bin /var/www/html/cgi-bin
ln -sf /usr/share/awstats/icon/* /var/www/html/awstats-icon
导航到CGI的port7080> VirtualHosts > Name > Context,然后创建一个context
单击保存按钮,然后从容地重新启动 web服务器。
现在您可以通过访问网址http://your-server-ip/cgi-bin/awstats.pl?config=example.com来访问您的AwStats
https://stackoverflow.com/questions/65404004
复制相似问题