Apache access log is empty

walo

Verified User
Joined
Mar 19, 2005
Messages
154
In http://serverip:2222/CMD_LOG_VIEWER the apache access log is empty. The same happen in a clean install server.
 
Through ssh, verify that the file is really empty.

It might really be empty or exist in a different location than DA is looking for it.
 
I have noticed that sometimes logrotate doesn't work properly, and the log file being appended to is access_log.1 and not access_log.
 
same problem here! the access_log it's always empty i check trought ssh and it's empty too.

Anyone can help me?

only happend with access_log, /var/log/httpd/domains/* all work fine.

and error_log, work fine too.
 
The access_log is only for entries when people use your main account; i.e., hostname.example.com/.

Jeff
 
Ok, thats clear.

But, is there a way to see all the users acces log in 1 file?
This is realy stuppid!

If there is a problem I want to see all the acces logs of all users in 1 file.
Now I must check every specifick users logfile to detect where is the problem, realy stupid and a lot of work.
 
you can do your own .sh script with grep what_you_want or other command to meet your needs ;-)
 
I tend to not reply to a first post to a thread 12 years old. What problem are you specifically having?

Jeff
 
I tend to not reply to a first post to a thread 12 years old. What problem are you specifically having?

Jeff

i think you confusion. I think only 6 years ago. i have this problem
i find some problem, my logs httpd is empty
-rw-r--r-- 1 root root 0 Jul 15 04:02 access_log
-rw-r--r-- 1 root root 0 Jul 8 04:02 access_log.1
-rw-r--r-- 1 root root 0 Jul 1 04:02 access_log.2
-rw-r--r-- 1 root root 0 Jun 24 04:04 access_log.3
log is empty. what is error ?
 
Sorry I meant to write six years old.

None of us can know why your logs are empty. The first thing to do is check to make sure your logd daemon is running. The second thing to do is make sure it's set up properly to log apache.

Jeff
 
Sorry I meant to write six years old.

None of us can know why your logs are empty. The first thing to do is check to make sure your logd daemon is running. The second thing to do is make sure it's set up properly to log apache.

Jeff

hi friend, i have some stupid question for you
q1: how i can check my logd daemon is running (please show me path)
q2: config my logd daemon and config httpd with save log access_log ?.
i only know my error log still good, i can see all log from it
 
I believe I was incorrect in my response above; checking one of my CentOS systems a moment ago I find that Apache on DirectAdmin systems manages it's own logging, so the real question to ask is whether or not you're using standard DirectAdmin apache configurations. If you're not sure, then using custombuild to run:
Code:
# ./build rewrite_confs
should fix the logging problem but may break other things if you've got custom configurations for a reasons.

If running that doesn't work I'd start by rebuilding apache, and then if that doesn't resolve the problem I'd go ahead and rebuild all.

If you don't know how to use custombuild I'm not going to try to teach you here how to administer a DirectAdmin server. Perhaps someone else will, but I'll suggest you hire someone either to fix this problem, or alternatively, to watch over your server for you.

Jeff
 
Back
Top