Now, here are some useful commands that can help you debug your site.
tail -f <filename>
tail -f -n <number-of-tailing-lines> <filename>
#example to tail from last 1000 files
tail -f -n 1000 <filename>
Change these variables to true in site’s wp-config.php
file.
// Enable WP_DEBUG mode.
define( "WP_DEBUG", true );
// Enable Debug logging to the /wp-content/debug.log file
define( "WP_DEBUG_LOG", true );
// Disable display of errors and warnings.
define( "WP_DEBUG_DISPLAY", true );
cd /opt/easyengine/services && docker-compose exec global-db bash -c 'echo ${MYSQL_ROOT_PASSWORD}'
cd /opt/easyengine/services && docker-compose exec global-db bash -c 'mysql -uroot -p${MYSQL_ROOT_PASSWORD}'