WillSquire
3/29/2016 - 9:59 AM

Find and get Apache log file on FreeBSD

Find and get Apache log file on FreeBSD

Apache Log

Download via SSH

The Apache log on FreeBSD is located at /var/log/httpd-error.log. Secure copy this file to your local machine by entering the command below and replacing [SSHHOST] with either the hostname and user login details, or an SSH alias (if using one):

scp [SSHHOST]:/var/log/httpd-error.log /path/to/save/to/on/local/machine

Reset log

To clear the content of httpd-error.log:

sudo sh -c ">/var/log/httpd-error.log"