How can I know which static pages on my site are being visited?
By static pages I mean PDF for the most part.
I use Apache and PHP.
How can I know which static pages on my site are being visited?
By static pages I mean PDF for the most part.
I use Apache and PHP.
2
Answers
You need to look at your apache config. It will specify the location of logfiles that you want to look at.
I believe the default location is
/var/log/apache2
once there you can monitor traffic in real time with something liketail -f access.log
or you can process the logfiles to get an idea of how many hits the resources are getting.assuming you had in xampp (preferable windows cause for sure cmod write right are on) the folder 0 and you can access http://localhost/0/ cause the server is on ,
assuming you use links like this to acces each pdf file:
http://localhost/0/file1.pdf
http://localhost/0/file2.pdf
assuming your php.ini settings does allow to run error_log function
you have these files
.htaccess
index.php
results.php
then should be the fastest custom method to logs visits statistics to count pdf access files
on https://www.real-domain-whaterver.extension
.htaccess may be like this (you should set the route ,isn’t automaticly)
so for
https://www.real-domain-whaterver.extension/ <---- '/'
:remember you should have right to write so on real public domain you could modify
in index.php
to
and results.php
to
and sure create someFOLDERtoLOG and setting cmod 775 or verify if is already(depend by administrator settings)