We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Difficulty Cloning/Migrating Live Instance

Development and Programming

rollinsedu's avatar
rollinsedu
3 posts
9 years ago
rollinsedu's avatar rollinsedu

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.

       
TJ Draper's avatar
TJ Draper
222 posts
9 years ago
TJ Draper's avatar TJ Draper

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).

       
rollinsedu's avatar
rollinsedu
3 posts
9 years ago
rollinsedu's avatar rollinsedu

/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!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.