Page 1 of 1

[Solved] Destroyed config.php... How to restore?

Posted: Wed Aug 01, 2012 9:05 am
by tonikanoni
Hi there!
I am new to PHP/CMS and after everything was working fine for a while, I managed to destroy the config.php file and now everything is down >:(

I tried to enable pretty URLs and somehow managed to upload an nearly empty config.php file to server (yes...). Now I get

Code: Select all

$config['url_rewriting'] = 'mod_rewrite'; // this is new from 1.6 $config['page_extension'] = '.html'; $config['use_hierarchy'] = true; // no longer in the config file $config['query_var'] = 'page';/home/domain/domain/lib/adodb.functions.php:80 - offsetGet
/home/domain/domain/lib/classes/class.CmsObject.php:218 - adodb_connect
/home/domain/domain/include.php:156 - GetDb
/home/domain/domain/index.php:71 - require_once
FATAL ERROR: Could not find database connection key dbms in the config file
How can I restore this without losing everything I did so far? Will a new installation of CMSS resolve the issue (without deleting the content/themes/modules)??

Please help

Re: Destroyed config.php... How to restore?

Posted: Wed Aug 01, 2012 9:21 am
by uniqu3
Run Installer again, untick last two options on Step 5 so Database tables are not created and sample content isn't installed.

Re: Destroyed config.php... How to restore?

Posted: Wed Aug 01, 2012 9:30 am
by tonikanoni
Thank you, I'll give it a go in the evening, hoping that everything will be fine again.

I'll mark the thread as solved then ;)

Re: Destroyed config.php... How to restore?

Posted: Wed Aug 01, 2012 9:43 am
by tonikanoni
One additional question though, just to make sure:

I download the full CMSMS package (tar.gz) and extract it on my PC.
Is it sufficient then to upload the install directory only to the server and to run install/index.php?

Or do I have to upload everything from the package, which would overwrite my existing modules/plugins/lib etc. directories and files?
(that's what I'm afraid to do...)

Thanks again!

Re: Destroyed config.php... How to restore?

Posted: Wed Aug 01, 2012 1:37 pm
by uniqu3
Download same Version you are currently using and upload install folder, then run installer.

Re: Destroyed config.php... How to restore?

Posted: Thu Aug 02, 2012 11:22 am
by tonikanoni
After doing a new installation (without tables and sample data creaton), everything's back to normal!

Thank you! (Dank da sche! ;-)