WillSquire
5/25/2016 - 8:39 AM

PHP-FPM error log

PHP-FPM error log

PHP-FPM Error Log

Download via SSH

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

Reset log

To clear the content of php-fpm.log:

sudo sh -c ">/var/log/php-fpm.log"