Dec 24, 2021
11
2
3
Sheffield, United Kingdom
cPanel Access Level
Root Administrator
Hi Guys,

I have asked my hosting provider who says its isn't possible but i'd like to check here just in case. I have a root access VPS & I'm wanting to pull the number of website visitors (monthly or yearly) from each domain name and then rank it from most visited to least visited. The websites/domains I'm wanting to rank are on 1 cPanel however I don't mind pulling all the websites on the server and then filtering them out.

I'm using Centos 7 if that helps.

Thanks,
Conor
 
Dec 24, 2021
11
2
3
Sheffield, United Kingdom
cPanel Access Level
Root Administrator
Hey there! I don't see why it wouldn't be possible, since you have full access to the access_logs on the system. Is this work not already performed for you in one of the statistics packages, such as awstats?
Thanks for the reply. I can view each of the websites individually but there are over 30 sites so it wouldn’t be very time effective to pull this information off without some way of viewing all the websites at once.
Thanks,
Conor
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,656
1,851
363
cPanel Access Level
Root Administrator
While this work is certainly doable, I don't have any ready-made queries or solutions to provide. You'd be essentially creating your own custom stats software that will sort through the logs and display data the way you want.

About 1/4 of the way down this page are the details about the access_log file:


but even Apache states "The next step is to analyze this information to produce useful statistics. Log analysis in general is beyond the scope of this document, and not really part of the job of the web server itself" which is why tools like AWStats were introduced.

You'd want to do some research on custom log queries to see if there is already something out there that would handle what you are looking for.