Edit the php.ini file to configure error directives based on your use case. Below are four common error directives: log_errors: activate this directive to turn on error logs. error_reporting: set to E_ALL to report all PHP errors. display_errors: activate to display errors in the browser during tests. It's a best practice to deactivate display_errors when your WordPress application is in production. error_log string: enter the location where you want to save the error logs. If log_errors is activated and error_log isn't defined, then errors are reported in the /opt/bitnami/apache2/logs/error_log file by default. Note: For more information as well as a full list of error directives, see Runtime configuration in PHP's official documentation.