I am facing a The website encountered an unexpected error. error while setting up the site.
Most of the documentation I found online suggest to enable logging in the setting.php file.
I added this line in site/default/settings.php.
$config['system.logging']['error_level'] = 'verbose';
I added the following code.
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
I added the following lines to the same settings.php file, at the bottom.
if (file_exists(__DIR__ . '/settings.local.php')) {
include __DIR__ . '/settings.local.php';
}
I copied the sites/example.sites.php file to sites/default/ and renamed it settings.local.php, as suggested on
https://catwolf.org/qs?id=180d30e9-9dcb-4e96-b030-7df34c77f5ab&x=x and https://www.drupal.org/forum/support/post-installation/2018-07-18/enable-drupal-8-backend-errorlogdebugging-mode.
I restarted Apache and reloaded the site, but I see the same error shows again without any log.
I am migrating a Drupal 7.84 site from CentOS 6.10 to CentOS 7.9. The httpd passes from version 2.2.15 to version 2.4.6; it also has PHP 7.03 and MariaDB 10.3.
Did I miss anything, or do I have to do anything else to enable the logging?