October 10th, 2013, 02:40 AM
How to find access.log
Hello 2 questions;
1 - I look for file called access.log in root directory; root I believe contains all folders on the server. Howcome the command returns nothing and doesn't find access.log
2 - What is the difference between these 2:
October 10th, 2013, 03:44 AM
1. Either it doesn't exist or you don't have permissions to get to it (in which case you should have seen warnings). Or maybe something else, I don't know it's almost 2am.
2. Nothing. The quotes are for... well, consider these two:
find / -name site access.log
find / -name "site access.log"
October 10th, 2013, 06:45 AM
Originally Posted by requinix
So what is access file called if it is something else?
October 10th, 2013, 12:09 PM
It's typical for the access/error logs from apache to include the server-name in the file name somehow. The easiest way to find out what their name is and where they are at is to just check the apache config file for the corresponding ErrorLog and CustomLog directives.
Recycle your old CD's, don't just trash them
If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
October 10th, 2013, 09:37 PM
Try find / -iname "*access.log*"
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
October 10th, 2013, 10:13 PM
[root@ded319 ~]# find / -iname "*access.log*"
October 11th, 2013, 09:25 AM
Dare I suggest reading the documentation/manual for the web server you are running and seeing where it says it will be putting the file and if it is created automatically.
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
October 11th, 2013, 06:17 PM
Thanks, good idea: /var/log/secure
Originally Posted by SimonJM