Page 1 of 1

Enable php error logs on a Synology NAS

Posted: Fri Sep 28, 2018 9:54 am
by steven
To create php error logs, first create a folder for the log files. You can use a shared folder or create a folder inside the web folder. This example uses a log folder inside the web folder. Log into DSM as administrator and open web station. Go to php Settings and highlight the first version of php then select edit.

Image

Check the Enable display_errors to display php error message if you want errors message to display on the screen. When this option is enabled, anyone can see php error messages on their screen. Uncheck the box if you do not want users to see error messages. Turning this option on is useful when trouble-shooting problems as they display immediately on your screen. When the problem has been solved, you can turn the option off.

Image

Select Core and scroll down to error log. If the line is blank error logs are not created.

Image

Enter the path and the file name for the error log. Make sure you enter a valid path or the log will not be created.

Image

Scroll down to log_errors and ensure the value is set on.

Image

Select OK when finished to save the settings. If you have more than one version of php installed, use a unique name for each log file. Repeat this procedure for each version of php.

Image