I need to find where Apache is keeping the access and error logs for a site.
I have root access to a server where dozens of sites are hosted. I'm trying to debug one of those sites. When I browse the site, it doesn't show up on /var/logs/apache2/access.log
or /var/logs/apache2/error.log
. (The files are there, and other sites gets logged on those. In fact, there are hundreds of different log files).
Neither locate httpd.log
nor find . -iname httpd.log
performed at /
issue any results.
The apache configuration for the site is:
ServerName REDACTED.com.br
DocumentRoot /var/www/xyz/wiki
AssignUserId xyz_wiki xyz_wiki
<Directory /var/www/xyz/wiki/data>
order allow,deny
deny from all
</Directory>
<Directory /var/www/xyz/wiki/conf>
order allow,deny
deny from all
</Directory>
<Directory /var/www/xyz/wiki/bin>
order allow,deny
deny from all
</Directory>
<Directory /var/www/xyz/wiki/inc>
order allow,deny
deny from all
</Directory>
php_admin_value open_basedir /var/www/xyz/wiki/:/mnt/vdImagem/www/xyz/wiki/
/var/log/apache2/access.log
which is what the duplicate suggests. – terdon Feb 19 '14 at 19:38sudo lsof -nP -c apache2 -c httpd | grep -i log
– Stéphane Chazelas Feb 19 '14 at 21:58