var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Find who access a page yesterday (IP only, and a specific site)
What is the shell command for determining who accessed a specific page on a specific domain yesterday? The server is CentOS 5.3, cPanel 11 latest, Apache 2.2.
I grepped /usr/local/apache/domlog/<domain name> for the page itself, but got nothing back.
I looked it up on Google, but I guess being up for over 40 hours has made my brain into mush, as none of the results were helpful.
First off try
See when the logs start, it may already be gone. Most people have cPanel setup to delete the logs daily which would mean it is long gone.
If you want to look at ALL users run a cat, not grep, or open it in a text editor.
John W, CISSP, C|EH
MS Information Security and Assurance
- Server Administration and Security
- Managed VPS and Dedicated Servers with VIP Service
How would one configure cPanel to keep a log for more than one day?
Originally Posted by larwilliams
go to your main dir /usr/local/htdocs where all domains are hosted then type this command.
- -atime +60 means you are looking for a file accessed 60 days ago.
- -atime -60 means less than 60 days.
- -atime 60 If you skip + or - it means exactly 60 days.
$ find /usr/local/htdocs/ -iname "*.php" -atime -1 -print
keep the logs to rotate and the logs will be kept in zipped form instead of deleting the old logs.
By aodat2 in forum Programming Discussion
Last Post: 02-19-2007, 10:53 PM
By grabmail in forum Programming Discussion
Last Post: 10-20-2006, 11:45 AM
By O.D.S. in forum Web Design and Content
Last Post: 09-22-2006, 06:26 PM
By lexington in forum Web Design and Content
Last Post: 12-08-2003, 05:27 AM
By GeorgeC in forum Hosting Security and Technology
Last Post: 03-13-2002, 01:13 AM