[Resolved] stderr.log in two locations! Bug?

Hedloff

Well-Known Member
#1
Hello,

Just checked a newer server with EA4 installed and saw that stderr.log is writing to 2 files at the same time:

tail -f /var/log/apache2/stderr.log
2017-02-24 14:02:09.007 [STDERR] Child process with pid: 719060 was killed by signal: 15, core dump: 0
2017-02-24 14:02:09.007 [STDERR] Child process with pid: 719039 was killed by signal: 15, core dump: 0
2017-02-24 14:02:09.009 [STDERR] Child process with pid: 719056 was killed by signal: 15, core dump: 0

tail -f /usr/local/apache/logs/stderr.log
2017-02-24 14:02:09.007 [STDERR] Child process with pid: 719060 was killed by signal: 15, core dump: 0
2017-02-24 14:02:09.007 [STDERR] Child process with pid: 719039 was killed by signal: 15, core dump: 0
2017-02-24 14:02:09.009 [STDERR] Child process with pid: 719056 was killed by signal: 15, core dump: 0

ls -lah /usr/local/apache/logs/stderr.log
-rw-r--r-- 1 nobody nobody 151K Feb 24 14:04 /usr/local/apache/logs/stderr.log

ls -lah /var/log/apache2/stderr.log
-rw-r--r-- 1 nobody nobody 151K Feb 24 14:04 /var/log/apache2/stderr.log

Why is that?
On EA4 only /var/log/apache2/stderr.log should be necessary.
 

Michael A

Administrator
Staff member
#2
Hi Hedloff,

In EA4, those files are one and the same. If you check the directory

Code:
/usr/local/apache
you'll see that the logs directory is sym linked to
Code:
/etc/apache2/logs
now checking

Code:
/etc/apache2
We see that the logs directory is sym linked to
Code:
/var/log/apache2

Hope this clears things up.

Regards,
-Michael
 

Hedloff

Well-Known Member
#3
OMG! You are absolutely correct. I thought I checked that, but I may have checked wrong server.
Thanks for your clarification anyway. Have a great weekend :)
 
Top