MyBB Community Forums

Full Version: Moving Forum to New Domain?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can I just download all my files and then upload them to a new domain and keep going on the new domain as if nothing happened?
Yeh, ofcourse!

Just export the following:

=> Make a backup of all your files in /html/
=> Export your theme .xml file
=> Export your database - if necessary
Basically you could do this way:
  1. Close your board.
  2. Backup database and all files in your web root.
  3. Upload all files onto your new server.
  4. Restore database backup into your new server's SQL engine, i.e., MySQL/MariaDB or PostgreSQL.
  5. Navigate to https://new_domain/path_to_your_forum/admin/ to login into the AdminCP with your new domain.
  6. If you have issues of logging into AdminCP, please change settings first in ./inc/settings.php according to this post.
  7. (Must do) Modify board settings in Site Details like Board URL, Cookie Domain and Cookie Path accordingly, and maybe Cookie Prefix if necessary.
  8. Visit your board via new URL, maybe https://new_domain/path_to_your_forum/
  9. Reopen your board.

That means you should change URL/cookies settings properly for correctly running the board.
Thanks, but I'm running into an issue. What file can I edit to fix this?
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1045 - Access denied for user 'robmeist_Robm'@'localhost' (using password: YES)
Query:
[READ] Unable to connect to MySQL server
^ /inc/config.php file contains database connection details [related guidance]
Thanks!

So this is odd... when I go to admin it works but when I try to go Configuration it asks me to login again, and again, and again and never lets me in.

Could it have anything to do with different php and mysql versions?
(2020-04-15, 03:23 PM)Robmeister89 Wrote: [ -> ]Thanks!

So this is odd... when I go to admin it works but when I try to go Configuration it asks me to login again, and again, and again and never lets me in.

Could it have anything to do with different php and mysql versions?

Emm... Cookies...

Looks like you need to edit ./inc/settings.php and then go to AdminCP to update relevant board settings.

For editing ./inc/settings.php, please check this post: https://community.mybb.com/thread-224737...pid1336290 (sorry I missed it..)

Remember to update the settings at AdminCP to save up-to-date values into the database.
There's no link to the post you're referencing ?
below should have correct values in settings.php file
$settings['bburl'] = "____________";

$settings['cookiedomain'] = "_____________";
$settings['cookiepath'] = "____________";

after saving the file,
you should be able to put those correct values again at
Site Details in configuration section of forum admin panel

see also MyBB faq : login problems
(2020-04-15, 03:59 PM).m. Wrote: [ -> ]below should have correct values in settings.php file
$settings['bburl'] = "____________";

$settings['cookiedomain'] = "_____________";
$settings['cookiepath'] = "____________";

after saving the file,
you should be able to put those correct values again at
Site Details in configuration section of forum admin panel

see also MyBB faq : login problems

EDIT: This worked. Thanks!