Recent Topics

1 Feb 14, 2017 15:57    

I tried to move/upgrade b2e with a different domain, but it fails and error links point to the old domain. I copied all the source files, changed the information in conf/_basic_config.php for database and domain information, and did an install-Upgrade. Obviously something is not being changed, or I need to update other files. Trying to use admin just goes to the old domain.

What if I install b2e fresh on the new domain (possibly latest version), then make these changes, then replace the database with the old one? It seems like that should work, or is something in the database pointing to the old domain?

2 Feb 15, 2017 00:23

@dbell154 wrote earlier:

I tried to move/upgrade b2e with a different domain, but it fails and error links point to the old domain.

You must make sure that your Domain Name System (DNS) settings -- usually at your domain name provider -- is pointing at the proper IP abc,def.xyz,stu for your b2evolution resource; also you must allow at least 24 hours after the update/modification/change to propagate.

Make sure this file
b2evolution/conf/_basic_config.php

references same domain your DNS is pointing at:
$baseurl = 'http://localhost/b2evolution/blogs/';

If you still are having issues comment the above directive as:
/*
$baseurl = 'http://localhost/b2evolution/blogs/';
**/

AND ucomment the subsequent section by removing characters / and /
// Use the following if you want to use the current domain:
/ <==remove this
if( isset($_SERVER['HTTP_HOST']) )
{ // This only works if HOST is provided by webserver (i-e DOES NOT WORK IN PHP CLI MODE)
$baseurl = ( (isset($_SERVER['HTTPS']) && ( $_SERVER['HTTPS'] != 'off' ) ) ?'https://':'http://')
.$_SERVER['HTTP_HOST'].'/';
}
and remove this other ==>
/

To allow b2evolution to automatically detect your domain.

Good luck!

3 Feb 15, 2017 22:04

The DNS wasn't an issue in my case since it's an existing/running site.

It turns out that moving to a new site was as simple as editing conf/_basic_config.php. Apparently the one thing I failed to do after editing was to upload it to the server. :)


Form is loading...