PHP-FPM error log
The PHP-FPM error log on FreeBSD is located at /var/log/php-fpm.log
by default. 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/php-fpm.log /path/to/save/to/on/local/machine
To clear the content of php-fpm.log
:
sudo sh -c ">/var/log/php-fpm.log"