MyBB Community Forums

Full Version: Install/reinstall multiple /forums/ on same web server ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How, if possible, to 'install' more than one /forum on same web server, ie...

/public_html/forum1/

/public_html/forum2/

...in this case for use inactive /forum2 for modify and then use to 'update' active /forum1 ?

Assumed needed to create a /forum1 backup database and 'copy' that to a new /forum2 db ?
And then when want to update /forum1, need to do something similar, in reverse ?

Created a second db and tried importing a backup *.sql.gz db file from /forum1, but didnt work, and no idea how to link the new database to the new /forum2.

Tried searching mybbcom but couldnt find info, and have the question in to hosting support.

Ideas on where to look for mybb info on how to do ?

Ps: Host support thinks it might be a browser cookies problem. May try do do some cleaning up there and see what happens.
You can have more than one forum on a server, and even more than one per DB because of table prefixes.

To import a database backup, you need to completely delete all the MyBB database tables, because the backup attempts to create the tables again.
(2012-03-30, 09:48 PM)Paul H. Wrote: [ -> ]You can have more than one forum on a server, and even more than one per DB because of table prefixes. To import a database backup, you need to completely delete all the MyBB database tables, because the backup attempts to create the tables again.

Thank you for the reply and info !
So far...
1. copied /forum1 files to /forum2
2. created separate new _data2 and exported/import with host cPanel instead of mybb backup from _data1 to _data2
3. modified /forum2/inc/config.php for new _data2 name (kept same db username and pswd for both dbs
...all looks good with both dbs, same number of tables etc.
Now problem logging in at /forum2.
When login, get message back that am 'successfully logged in', but no username/usercp/admincp display (username and pswd same for each forum).
Only changed db name at config.php, not user/pswd since have same db username for _data1 to _data2.
Can login at _forum1, no problem.
In fact when try to login at _forum2, after logout at _forum1, go back to _forum1 and am logged back in there instead of _forum2.
Thoughts ?
You need to change your cookie settings. See http://community.mybb.com/thread-74904.html
(2012-03-30, 11:11 PM)Paul H. Wrote: [ -> ]You need to change your cookie settings. See http://community.mybb.com/thread-74904.html

Thank you very much for the direction/link !

That seemed to do it.
Changed settings per below...

settings.php
Quote:$settings['cookiepath'] = "/forum2/";
$settings['bburl'] = "http://*.org/forum2";

$settings['cookiedomain'] = ".*.org";
$settings['cookiepath'] = "/forum2/";
$settings['cookieprefix'] = "";


ACP
Quote:Board URL... change /forum1 to /forum2
Homepage Name... add forum2 ? (forum1 shows only *.org, not *.org/forum1)
Admin Email... no change
Return Email... no change
Default Language... na
Cookie Domain... add forum2 ? (forum1 shows only .*.org, not .*.org/forum1)
Cookie Path... change to /forum2/
Cookie Prefix... nothing shown at forum1

...and all seems to work for now .

Hope ACP looks right (not totally sure about where added forum2 at domainname when there was no forum1 before) ??

Doing all this to be able to modify the forum1 by using forum2 to make modifications while forum1 is still running, then replace forum1 with forum2.

Suppose would need to be careful about what database tables keep and replace with 'new' forum modifications... like for new users etc ?

Is there a better way to do the same thing... ie you mentioned using the same db for both forums ?

Just dont want to screw up forum1 while working with modifications in forum2.

Thoughts ?