Recent Topics

1 Jul 21, 2007 02:28    

My b2evolution Version: 1.10.x

I've got a test blog that's just about ready to go into production, and I'm debating my options as far as resetting everything... Ideally, I'd like to just wipe out the database, resetting it to a clean starting point, without wiping out all the site files which have been tweaked and customized...

Is it possible to just reupload the /install/ folder and run the install program again, after creating a new database and backing up the existing site? If the rest of the site's files are the tweaked versions, rather than the stock versions, will they be affected in any negative way if the /install/ procedure is run with the tweaked files in place?

Or is the best/safest way to do this to backup the entire site, run a full installation, and then overwrite the fresh installation files with the backed-up tweaked copies?

Just looking for some ideas and examples of creative thinking...


2 Jul 21, 2007 04:04

If you just want to reinstall the database (so all the stuff that is customizable in the admin area), then open up your _basic_config.php set $allow_db_reset to 1, as well as the already config'd variable (i forget what it's called), then run the install script (the install script doesn't do any file changing, unless you haven't set up _basic_config.php yet).

3 Jul 21, 2007 04:22

By "already config'd variable" do you mean this one:

 * Once you have edited this file to your settings, set the following to 1 (one):
$config_is_done = 1;


Also, following the procedure you've outlined above, does that set all the fields at 0, or will that also reinstall all the pre-filled posts that usually show up when b2evo is first installed?


4 Jul 21, 2007 04:35

Yeah that variable, that way you don't need to reconfigure your database options etc.

What do you mean by set all fields to 0?

It will reinstall all pre-filled posts, reinstalling the database reinstalls everything you create (posts, users, stats, settings), will be just like a brand new installation, but with your same files/customizations/extensions.

5 Jul 21, 2007 04:57

By resetting all fields to 0 (bad explanation) I was asking if it basically creates an empty database (first new post would be in Field 1) or does it recreate all the default posts, so the first new user post would be in Field 6 or 7 or whatever (I forget how many default posts are included, but you get the idea)

Ok, so as far as this code

 * Once you have edited this file to your settings, set the following to 1 (one):
$config_is_done = 1;

goes, do I leave that at 1, or do I set it to 0, do the reinstall, and then set it back to 1?


6 Jul 21, 2007 05:13

Well leave it as 1, after the install it will be 1 as well, it's only 0 if you haven't installed b2evo before.

So in the install your do:

Delete b2evolution tables: If you have installed b2evolution tables before and wish to start anew, you must delete the b2evolution tables before you can start a new installation. WARNING: All your b2evolution tables and data will be lost!!! Your Cafelog/b2 or any other tables though, if you have some, will not be touched in any way.


New Install: Install b2evolution database tables with sample data.

Always good to do a mysql db backup via cpanel before you do anything like this, so if later on you go, oh shit, i deleted this and i need it, you will have a copy.

7 Jul 21, 2007 05:16

Cool, thanks for the info.... I'll be doing this over coffee tomorrow morning. :)


Form is loading...