View logs for all ips that accessed specific file
Hi there,
Assuming that I have a php file on a website on a cpanel account and there is a file ( malware ) which is scary!
How do I view the logs that are recorded for this file? like when was it uploaded? what was the ip? and ips that viewed this from browser?
Please help!
-
Hello, You have root access of our server to that you can check this through command line. Login your server with the SSH and try with the following command cd /home/user_name/access-logs grep file_name * OR grep file_name domain_name0 -
Hello :) You can review /usr/local/cpanel/logs/access_log if the file was uploaded through File Manager in cPanel. Otherwise, the Apache logs are found in /usr/local/apache/domlogs/ and FTP logs are found in /var/log/messages. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments