New to the product and loving it!
Is there a report that shows unique visitors to a particular website over time i.e. per hour/day/week/month?
We would like to know how many hits certain pages are getting. Would this have to be done in Wordpress?
Thanks!
Trying out google analytics
I think for now you can use some Analytics software (Google Analytics), later we can add Awstats.
gofast
January 31, 2020, 9:08pm
4
@CyberPanel Are there any future plans or manual to add Awstats ? It would be very useful! Many thanks in advance
Zalcig
February 1, 2020, 9:25am
5
@neweracloud when there are 100 pages it gets complicated with using external softwares. Or if you have your customers pages you cant add codes to your customers page Awstats is by default on many control panels if not for all, and I think it would be useful if its easy to integrate. If not I think there are many other important things that the CP team probably working on
To do something like awstats or similar will require the access log being setup to the same universal standards as cPanel is in the LS/OLS config.
Looks unset by default.
Should look something like this when set:
[root@]# grep logFormat /usr/local/lsws/conf/httpd_config.xml
%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
[root@]#
LS
OLS
https://openlitespeed.org/kb/customize-log-format/
cPanel has it setup with the below:
LogFormat (combined)
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"
LogFormat (common)
%h %l %u %t "%r" %>s %b
Notice the cPanel format “LogFormat (combined)” is almost exactly the same as the
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"
NCSA extended/combined log format
"%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"
The difference being the preceding " in the front of the NCSA extended/combined log format.
Once something like this is standardized in cyberpanel there are tons of cool scripts which will make parsing these for stats super easy.
@usmannasir Is this something we can implement?
Just had the code necessary to change the formatting to make stats collection easier merged into 1.9.4
usmannasir:v1.9.4
← usmannasir:michael
opened 04:32AM - 03 Feb 20 UTC
In this commit I setup the combined access log to use the same universal standar… d that cPanel uses
LogFormat (combined)
`%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"`
This was done in both the LS xml and the httpd.conf which it uses as a template.
https://www.litespeedtech.com/docs/webserver/config/vhostgeneral#accessLog_logFormat
https://openlitespeed.org/kb/customize-log-format/
I also set up the Cloudflare/Sucuri WAF and localhost IP's to be in the Litespeed Trusted IP's list to prevent accidental throttling of Cloudflare/Sucuri protected domains via Litespeed's AntiDDoS protection.
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:cloudflare-ips-or-subnets
Add missing lsphp74 to the "scriptHandler" section.
See this post for how to setup this on existing domains and upgrading to the new version early.
https://forums.cyberpanel.net/discussion/3895/updating-logformat-for-better-stats-collection/
See this post for how to work with the new version accesslogs