How can one prevent excessive error log generation in PHP installations on Debian8?
Excessive error log generation in PHP installations on Debian8 can be prevented by adjusting the error reporting level in the php.ini configuration file. By setting the error_reporting directive to a specific level, such as E_ERROR or E_ALL & ~E_NOTICE, only critical errors will be logged, reducing the amount of unnecessary log entries.
// Set error reporting level to only log critical errors
error_reporting(E_ERROR);
Related questions
-
PHP login scripts security requirements
-
PHP file downloads FTP server
-
implode function PHP