I am using Ubuntu to run a web server with Apache, PHP and MySQL.
How can I monitor who is loading files on my server and which files are opened in PHP?
I would really appreciate your answer because I could not find anything ?
Thank you !
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Apache has an access log that can be used to show this. From this site:
Default apache access log file location:
RHEL / Red Hat / CentOS / Fedora Linux Apache access file location: /var/log/httpd/access_log
Debian / Ubuntu Linux Apache access log file location: /var/log/apache2/access.log
FreeBSD Apache access log file location: /var/log/httpd-access.log
The access log shows what pages visitors viewed, the success status of requests, how long the request took to respond and the IP address of the site visitor.
To actually read the file you can use
cat <path to access log>