Solution:2
Start with the simpler:
define( 'WP_DEBUG_LOG', true );
If that is still giving you the “site is experiencing technical difficulties” error, temporarily rename your .htaccess
file to ensure there are no strange rewrites causing an issue. This should at least get the logs being written to /wp-content/debug.log
inside of this WordPress install.
Regarding the full path however:
define( 'WP_DEBUG_LOG', '/public_html/ibdpage/wp-content/debug.log' );
When accessing the filesystem, even though /public_html/ might be the highest you can go in the file structure of your cPanel account, often you need the full path, which would be something like this:
define( 'WP_DEBUG_LOG', '/home/accountname/public_html/ibdpage/wp-content/debug.log' );
Look for Home Directory in your cPanel or File Manager to discover the correct path.