Site.php blew up my everything

Permalink
Greetings all. Just started developing my first concrete5 site today! Exciting times. Unfortunately I made a grade-a noobie mistake: while attempting to enable advanced permissions in site.php (which I now realize could have been done from Dashboard), I managed wipe my site out of existence (500 error). I tried to remove my site.php file, which was uploaded to the top-level config directory (not concrete/config, but the override), and now when I go to my site I'm back to the installation screen for c5.

Any idea on what I could do to restore my site? The database appears to be fine...

 
Blenderite replied on at Permalink Best Answer Reply
Blenderite
The site.php file contains important information in order for C5 to gain access to the database.

<?php 
define('DB_SERVER', '****');
define('DB_USERNAME', '****');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '****');
define('PASSWORD_SALT', '****************************************************************');
define('EMAIL_DEFAULT_FROM_ADDRESS', '*******************');?>


This is how the file will usually look. The * have replaced the info from my site. All of this info is replaceable!

1. Open a text editor and copy and paste the code above. Save the file in the /root/config/ as site.php.

2. Got tohttp://www.adamek.biz/md5-generator.php...

3. Enter a new password and click the generate button.

4. Copy this part:
md5("") = "********************************"


5. Edit the site.php to reflect that new code. Put it at the asterisks after PASSWORD_SALT.

6. Go to your hosting service's phpMyAdmin. Change the password of the database C5 is installed on to the password you chose in step 3.

7. Fill out the rest of the info in the site.php file.

8. Save the site.php file.

Hopefully this will work. I don't know if it will since I have not tested it. If it doesn't, you will have to reinstall as far as I am aware.

If you have customized any add-ons or themes, you can go to the packages folder and copy it's contents to another location. Then you can delete the current C5 installation and reinstall. Once it has installed, simply copy it all back and install in the C5 dashboard.
tderkowski replied on at Permalink Reply
Thank you good sir! Great reply. I actually went ahead and re-installed some time after my post, since I really only had sample content on a few pages as I was developing my first theme. Was mostly interested in if I could restore site.php. I might blow it up again at some point just to see what comes of it. Thanks again!
Blenderite replied on at Permalink Reply
Blenderite
No problem.