x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

Config

Question:

I was upgrading EE and I accidentally overwrote the config.php file. How can I recover?

Answer:

You should always make sure you backup your config.php and path.php files before upgrading - as is clearly stated in the documentation. However, if you haven’t, here are some sample config.php files for various versions of EE to get you started.

Config.php for v1.5.1

You will need to customize the sample files so that they are applicable for your installation. In particular, make sure you update all the preferences that have “****” to reflect the correct values for your site. You’ll also probably want to go through the Control Panel and make sure the settings are the way you want.

In addition, there is now a configuration check utility that will check your existing config.php file against the current variables and return a list of missing settings as well as depreciated settings.  Simply download, unzip, upload config_check.php to your system folder- then open it in the browser (mysite.com/system/config_check.php), select a version to compare to, then edit your existing config.php to incorporate the changes.  Be certain to edit your version number if it needs updating.

File:config-check.zip

Note- some modules (such as the simple commerce module) may add additional variables not covered.  This version is current as of EE 1.5.1.  This is not an official EE product- use at your own risk.

Category:Troubleshooting Category:Upgrading