Hello,
We are new to EE, so please pardon any gaps in EE knowledge or lingo. I’m hoping this is something simple to solve!
We are trying to clone our current EE install (v2.5.5) for a dev environment, but we are encountering the white screen of death and/or 500 server error. On admin.php, I was able to get the following error messages:
Warning: require(/var/www/public/../config/config.local.php): failed to open stream: No such file or directory in /var/www/config/config.master.php on line 246
Fatal error: require(): Failed opening required '/var/www/public/../config/config.local.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/config/config.master.php on line 246
To me, it looks like EE cannot get to the config folder/files above documentRoot. Is there a setting in httpd.conf or some other server config we are missing?
More Details: - It is a LAMP stack on virtual server - DOCUMENT_ROOT is the same on both servers - The db and ALL files were copied from the live server - All file permissions on dev match live. - For the heck of it, we tried installing EE from scratch, and it was successful.
I appreciate any insight you can offer.
Are you sure config.local.php is present in the config directory? It looks like you’re using Focus Lab master config or some variation thereof and the error is saying it cannot locate that file. It looks for environment specific config files. In this case, it’s looking for config.local.php so it knows how to connect to your local database (among other things).
/config and all its files were placed in the correct location, same location as our live instance. However, you ultimately got me in the right direction!
I looked up Focus Lab’s master config to understand what it did, and it turns out the config.env.php file needed to be updated. I had NO idea this plugin had a critical role, as I had assumed to simply follow the moving instructions and update the database.php file.
Thanks for steering me in the right direction, TJ!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.