Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

WordPress: Error establishing a database connection

If you see the infamous “Error establishing a database connection“, enable WordPress Debug Logging by following the steps outlined here:     Debug.log will be saved within wp-content folder. Possible error messages in debug.log: [25-Jul-2016 15:34:44 UTC] PHP Warning: mysqli_real_connect(): (HY000/1045): Access denied for user ‘be96d626d450b1’@’’ (using password: YES) in D:\home\site\wwwroot\wp-includes\wp-db.php on line 1490 [25-Jul-2016 15:34:44… Read more

PHP Error Log on Azure Website

1. E_ERROR – Fatal run-time errors. These are the errors that can not be recovered, execution of the script is halted ( 2. When fatal errors happen, you could see http 500 internal server error or a blank page on your browser 3. PHP error log is an important log file for troubleshooting. if you use… Read more