The error log should should be located at wp-content/debug.log
you can put the action in your functions.php file.
Unless there’s something else going on with the site it should work. Make sure that you aren’t defining the constants more than once in wp-config.php, it’s possible that they are defined already.