Hiya, I am having issues with getting stats to work. https://www.howtoforge.com/community/threads/stats-for-website.72845/#post-344648 Could anyone please advise where I am going wrong. Raj
Are you able to see the access.log file in the log folder of this website and does it contain the latest accesses?
yes the logs are up to date but nothing there. I run pfsense as firewall and have varnish as a reverse proxy. Here is a copy of the logs: ip of ispconfig - - [26/Jun/2016:23:59:59 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:05 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:10 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:16 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:21 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:27 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:32 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:38 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:43 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:49 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:00:55 +0100] "POST /wp-cron.php?doing_wp_cron=1466982055.0176029205322265625000 HTTP/1.0" 200 269 "-" "WordPress/4.5.2; http://domain.co.uk" ip of ispconfig - - [27/Jun/2016:00:00:54 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:00 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:06 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:11 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:17 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:22 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:28 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:33 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:39 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:44 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:50 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:01:56 +0100] "POST /wp-cron.php?doing_wp_cron=1466982116.2500400543212890625000 HTTP/1.0" 200 269 "-" "WordPress/4.5.2; http://domain.co.uk" ip of ispconfig - - [27/Jun/2016:00:01:55 +0100] "GET /wp-login.php HTTP/1.1" 200 5017 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:01 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:07 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:13 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:18 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:24 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:29 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:35 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:40 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:46 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:51 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:02:57 +0100] "POST /wp-cron.php?doing_wp_cron=1466982177.4315838813781738281250 HTTP/1.0" 200 269 "-" "WordPress/4.5.2; http://domain.co.uk" ip of ispconfig - - [27/Jun/2016:00:02:57 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:03 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:08 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:14 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:19 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:25 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:30 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:36 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:41 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:47 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:52 +0100] "POST /wp-cron.php?doing_wp_cron=1466982232.9346549510955810546875 HTTP/1.0" 200 269 "-" "WordPress/4.5.2; http://domain.co.uk" ip of ispconfig - - [27/Jun/2016:00:03:52 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:03:58 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:04 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:09 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:15 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:20 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:26 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:31 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:37 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:42 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:48 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:53 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:04:54 +0100] "POST /wp-cron.php?doing_wp_cron=1466982294.3836851119995117187500 HTTP/1.0" 200 269 "-" "WordPress/4.5.2; http://domain.co.uk" ip of ispconfig - - [27/Jun/2016:00:04:59 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:05 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:10 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:16 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:21 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:27 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:32 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:38 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:43 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:49 +0100] "GET /wp-login.php HTTP/1.1" 200 5022 "-" "Varnish" ip of ispconfig - - [27/Jun/2016:00:05:55 +0100] "POST /wp-cron.php?doing_wp_cron=1466982355.3868360519409179687500 HTTP/1.0" 200 269 "-" "WordPress/4.5.2; http://domain.co.uk" The error page that I get when I try to get the stats is : ERROR 404 - Not Found! The following error occurred: The requested URL was not found on this server. Please check the URL or contact the webmaster.
The apache logs that ispconfig uses for the statistics do not contain useful data when you put varnish in front of it. So even if the statistics would be generated, they won't contain useful values as apache is not able to log the cached requests from Varnish. You should better use a software like piwik that can track the requests with javascript in your website then.
You create a website like stats, yourdomain.tld and install piwik in it. Then you can use this central piwik installation to create the stats tracking codes and view the statistics.
so to be sure I got this, i create a new site for my domain ie stats.domain.co.uk and then install piwik there, correct? Does that mean that all the websites that I host on ispconfig will have their own piwik install? Just trying to understand my options. Cheers, Raj
Hi Till you would you have a guide on how to do this step by step if possible. There is a lot of excellent ones on different bits for ispconfig but I cant find one for this. Raj
Hi Till, sorry to be a pain but i created a subdomain as stats.domain.com. On the domain.com I have wordpress installed and I am trying to install piwik on the subdomain but having some difficulty. Could you advise. The issue is when I select piwik, i get " ERROR The installation path already contains a package installation. Any help or pointers would be very nice. Raj
Create a new website piwik, do not install it into a website where you have already wordpress installed.