Get Hands-on with Amazon EKS - Workshop Event Series
Whether you're taking your first steps with Kubernetes or you're an experienced practitioner looking to sharpen your skills, our Amazon EKS workshop series delivers practical, real-world experience that moves you forward. Learn directly from AWS solutions architects and EKS specialists through hands-on sessions designed to build your confidence with Kubernetes. Register now and start building with Amazon EKS!
Este contenido no está disponible en el idioma seleccionado
Trabajamos constantemente para que el contenido esté disponible en el idioma seleccionado. Gracias por tu paciencia.
How do I log PHP errors in Lightsail?
1 minutos de lectura
0
I want to configure PHP error reports in Amazon Lightsail.
Resolution
To log PHP errors in Lightsail, complete the following steps:
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.