Basically what the title says.
I have a semi-working config file that displays a site, and navigates me to links, but for some reason whenever I try to flesh out some more settings in it, the whole damn thing tanks. I’m not sure why, but boy, some logs accessible on the filesystem that don’t require me to enter my user control panel would suuuuuure be helpful. Any chance there’s some config file settings or something that sets that parameter or something? Thanks.
It follows, naturally, that anytime I post to the forums about a problem I’m having, I solve it immediately after. Oh well. Here’s the solution, internet bugaboos. This is in your config file, which (if I recall correctly) will usually be system/user/config.php
. Of note, in particular, is the line that says 'expressionengine' =>
- presumably somewhere later in the code is looking for an array or hash called expressionengine
containing where and who to connect in order to get to the database. For some silly reason, I had changed this. Don’t do that.
$config['database'] = array (
'expressionengine' => # This line MUST be set to this string - it is not the name of a database it is the name of the variable containing database connection parameters
array (
'hostname' => 'localhost',
'username' => getenv('EXAMPLE_COM_DATABASE_USERNAME'),
'password' => getenv('EXAMPLE_COM_DATABASE_PASSWORD'),
'database' => 'database_name',
'pconnect' => true,
),
);
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.