WP_DEBUG_LOG never gets created – Permissions correct – PHP 8 + Apache 2.4.51
-
Hello,
I have a server with multiple WordPress installations on it, and upon updating to PHP 7.3 in the fall of 2021, my debug.log files were no longer being generated.
I recently updated to PHP 8, and the process would have been much smoother if my debug.log files were being generated.
I have the following in my wp-config.php files
// 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', false ); @ini_set( 'display_errors', 0 );
I also have the correct permissions and have even tried making wp-content 777, but this still does not work.
In PHP I have the following
display_errors is on
log_errors is on
error_log is set to /var/log/php-fpm/www-error.log and here I can find my WordPress errors/logging but not at wp-content/debug.logTo be clear I’ve also tried changing
define('WP_DEBUG_LOG', true)
todefine('WP_DEBUG_LOG', '/var/www/html/debug.log')
and this too does not work at all.I am at a complete loss for what to do next and any insight would be greatly appreciated. I need to get debug.log working for my websites.
Edit:
Also want to add that each of these wordpress installations is a different WP version, with one being completely up to date. This issue persists across all of my WP installations on this server so it has to be related to PHP/Apache but I cannot figure it out.
- The topic ‘WP_DEBUG_LOG never gets created – Permissions correct – PHP 8 + Apache 2.4.51’ is closed to new replies.