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

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
tonikanoni
New Member
New Member
Posts: 5
Joined: Mon Jul 30, 2012 11:45 am

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

Post 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
Last edited by tonikanoni on Thu Aug 02, 2012 11:23 am, edited 1 time in total.
uniqu3

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

Post by uniqu3 »

Run Installer again, untick last two options on Step 5 so Database tables are not created and sample content isn't installed.
tonikanoni
New Member
New Member
Posts: 5
Joined: Mon Jul 30, 2012 11:45 am

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

Post 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 ;)
tonikanoni
New Member
New Member
Posts: 5
Joined: Mon Jul 30, 2012 11:45 am

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

Post 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!
uniqu3

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

Post by uniqu3 »

Download same Version you are currently using and upload install folder, then run installer.
tonikanoni
New Member
New Member
Posts: 5
Joined: Mon Jul 30, 2012 11:45 am

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

Post by tonikanoni »

After doing a new installation (without tables and sample data creaton), everything's back to normal!

Thank you! (Dank da sche! ;-)
Locked

Return to “[locked] Installation, Setup and Upgrade”