MyBB Community Forums

Full Version: Moving MyBB to New Domain
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This is for cPanel.  Need to move MyBB to new domain located on the same hosting.
That's simple but first create a complete backup of everything.
Now go to cpanel, and add the new domain(if its not already added).
Then copy all MyBB files to the folder of the new domain folder. As hosting is same, so database information will be same. Now go to settings.php and change your domain name everywhere.
Save that and now go to your new domain, your website should load fine. Go to admin panel and update your domain name in General settings.

Optional, create a filter to replace your old domain name to new one so that any added links will be written as new one.

Make sure you have backup.
Cheers
Thanks.
Doesn't work for me. Wnated to transfer forum at :

https://lawforall.in/ipforum

to

https://ipworld.in/discusspatentinng

Both domains are on same hosting. Copied all files from ipforum directory to discusspatenting directory. Then edited

/public_html/ipworld/discusspatenting/inc/settings.php

to replace all instances of lawforall.in to ipworld.in and ipforum to discusspatenting.

Now accessing https://ipworld.in/discusspatenting/ gives an error message

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/...../public_html/ipworld/discusspatenting/inc/settings.php on line 114

Appreciate all help, thanks !
(2019-09-09, 01:05 PM)Learning Wrote: [ -> ]Now accessing (...) gives an error message

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/...../public_html/ipworld/discusspatenting/inc/settings.php on line 114

Appreciate all help, thanks !

Don't know which version of MyBB you're using, this ./inc/settings.php file might be different.

Seems this file is broken by your manual editing, so better work with a backup of this file from your old forum.

Normally, you will need just editing two or three lines of this file, followed by an extra step in AdminCP in new forum location.

Search for the following lines in ./inc/settings.php (may not be consecutive):
$settings['bburl'] = "http://URL_OF_SITE/PATH_TO_FOROM";
$settings['cookiedomain'] = ".DOMAIN_OF_SITE";
$settings['cookiepath'] = "/PATH_TO_FORUM/";

In your forum, they might be:
$settings['bburl'] = "https://lawforall.in/ipforum";
$settings['cookiedomain'] = ".lawforall.in";
$settings['cookiepath'] = "/ipforum/";

So you change them into:
$settings['bburl'] = "https://ipworld.in/discusspatentinng";
$settings['cookiedomain'] = ".ipworld.in";
$settings['cookiepath'] = "/discusspatentinng/";

And followed by an extra but must do step, login into your AdminCP in new location directly this URL, maybe https://ipworld.in/discusspatentinn/admin , go to Configuration > Settings > Site Details, find and configure following settings and hit "Save" button to save new settings into the database:
> Board URL
> Cookie Domain
> Cookie Path

Then, viewing your forum from new location would be fine.

However, there might be theme/template problems that are a little bit difficult to explain. Solve the moving problem first.
Thanks for your reply. Settings are as said by you. Yet Inget the error. Can't login to admin - get smae error.

Please advise, thanks.

Edit : I am on mybb version 1.8.19

OK I have manged to get it partially working by editing original settings.php file again.

But my forum links now seem to be awry....see for example :

https://ipworld.in/discusspatenting/forum-2.html

and similar... all giving error messages.

Please help, thanks .

Further, I had deactivated all plugins prior to shifting - can't activate them now!

Also I am not able to edit Board settings as accessible via :

https://ipworld.in/discusspatenting/admin

and they keep on pointing to the old domain...
(2019-09-09, 02:02 PM)Learning Wrote: [ -> ]OK I have manged to get it partially working by editing original settings.php file again.

But my forum links now seem to be awry....see for example :

https://ipworld.in/discusspatenting/forum-2.html

and similar... all giving error messages.

Please help, thanks .

Great!

The SEO friendly link is activated, you should configure it from within your HTTP server to setup rewrite rules for Apache/Nginx/etc. for the new domain/path. Basically just copy & paste those rules from the old domain to the new domain, then modify the path, and all will be fine.

See also this document: https://docs.mybb.com/1.8/administration...ndly-URLs/

(2019-09-09, 02:02 PM)Learning Wrote: [ -> ]Further, I had deactivated all plugins prior to shifting - can't activate them now!
Did you reconfigure those options in the Site Details?

What's the warning/error you get from the AdminCP when trying to activate plugins?
I can 't change the board settings found via :

https://ipworld.in/discusspatenting/admi...g-settings

They still keep on pointing to old domain, although I get a message saying " settings updated successfully"
. No error message.

Have changed the .htaccess file with changed domain/path wherever required.

Please advise, thanks.
(2019-09-09, 02:46 PM)Learning Wrote: [ -> ]I can 't change the board settings found via :

https://ipworld.in/discusspatenting/admi...g-settings

They still keep on pointing to old domain, although I get a message saying " settings updated successfully"
. No error message.

Have changed the .htaccess file with changed domain/path wherever required.

Please advise, thanks.

Seems your site is running correctly for most part.

Oh, I forgot to tell you run a full cache rebuilding. Turn to AdminCP > Tools & Maintenance > Cache Manager, click the link (Rebuild & Reload All) on the right. Then there will possibly be some issues with theme/template, but will not break the forum.

What about plugins? Looks like the SEO plugin is working correctly.

When you navigate to AdminCP > Configuration > Settings, do you still get the old settings for previous domain/path?

Seems the HTTP server's caching is working overactively. Try to force refresh in your browser (Ctrl + F5) for a page, will the output get changed?
No I can't still activate the plugins....

And cannot change the settings - still getting them for earlier domain / path ...

Appreciate all inputs...
Pages: 1 2