Hi EE Community.
I assume that presented with conflicting data between the two mentioned files that actual used values are taken from config.php? As in the following case where config.php contains the following data:
$config['database'] = array (
'expressionengine' =>
array (
'hostname' => 'localhost',
'username' => 'username',
'password' => 'password',
'database' => 'database',
),
);
Information in database.php is outdated in comparison to the data found in config.php so the question is, should I change database.php to reflect the correct information or is it a legacy file in version 3?
on a side note I have noticed that my /system/ee folder still has a folder called “installer_3.5.4” - was I supposed to remove that and I missed it? I thought that I wouldn’t be able to access the admin panel if it were there (as a security feature), but the admin panel is operating normally.
Thanks everyone - in advance!! 😊
Eric
database.php
is not used in ExpressionEngine 3 following the upgrade. If PHP has sufficient permissions, it will delete that file after moving the database settings to the config.php
file. If it does not, it is safe to remove after completing the upgrade. Same with the installer folder—since we were unable to remove it, it was renamed to include the suffix so the app is not stuck in “updater” mode.
Thank you, Derek, for the clarification. I often change site files locally, zip, upload the entire site (instead of syncing)… and sometimes do the reverse, so it’s no surprise that my permissions get changed to defaults - perhaps I need be more careful to ensure as much in future updates.
Thanks again!
Best, Eric
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.