Find and get Apache log file on FreeBSD
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
To clear the content of httpd-error.log
:
sudo sh -c ">/var/log/httpd-error.log"