Elxis CMS Forum

Support => Installation => Topic started by: ipghmagnet on December 04, 2014, 17:06:33

Title: How to move to new ip with new domain
Post by: ipghmagnet on December 04, 2014, 17:06:33
Hello Sirs,
I met below problem:
I have several websites in USA HOSTING.
I created A.COM for try elxis 4.2. After all is ok, I copy A.COM all files to B.COM .  Becasue the mysql database sever is same.  I want to use same mysql database. So i don't do anything.

I changed configuration.php replacing " A.COM " with " B.COM".
But i found it cannot work.

Pls kindly help me where i should change more.
Thanks in advance.

ipghmagnet

Title: Re: How to move to new ip with new domain
Post by: datahell on December 04, 2014, 21:16:00
"But i found it cannot work."
What  exactly doesn't work? What happens when you visit the site?
If you have a custom path for Elxis repository you also have to update variable $REPO_PATH in configuration.php. Also are database settings the same (same db name, user, password)? Iu guess not. So you also have to update these settings. You might also have to update email settings if you use SMTP to send emails. Check all configuration variables carefully.
Title: Re: How to move to new ip with new domain
Post by: ipghmagnet on December 05, 2014, 04:29:55
Dear Datahell,

Here is the problem:
Firstly, I install elxis at A.COM  , Then I move to B.COM . I copied all files to B.COM , then change the configuration.php with " B.COM".
Database all settings are same.. password, db_name, user, all same. so i don't need to change.
path for Elxis repository is default. so i don't change..

Then I found the problem:
website is open: a.com/index.php , i can see the website open. But I found all links are from A.COM/.../
For example, : it shows : a.com/about-us.html, not b.com/about-us.html
when i login in: B.COM/estia/ , i will go back to A.COM 's administration interface.

I am guessing if i should change something in the database..

I am expecting your kind help.

Thanks.
IPGHMAGNET
Title: Re: How to move to new ip with new domain
Post by: webgift on December 05, 2014, 10:27:25
Hi,
1. Open configuration.php file and change private $URL = 'http://a.com (http://a.com)'; to private $URL = 'http://b.com (http://b.com)'; .
2. In case that you had submitted menu items manually by writing the whole URL then you must edit them one by one in order to update with the new domain name. Finally
3. check your .htaccess file for any redirect rule.

Do the 1st solution. The other two are submitted optionally. ;)
Title: Re: How to move to new ip with new domain
Post by: ipghmagnet on December 08, 2014, 07:58:33
Dear Webgift,
How are you?
My first installation is helped by you!!

I already do 1, and then in B.COM, i can see the website launched. But when i move mouse on menu, catgegory, articles, the url is started from A.COM/.....

I checked i added menu manually, but the parth is as default . like content:about-us.html.  i didn't use absolute path..

For. htaccess, i didn't change anything. stay as default.

So it is very curious.  Should I change the database ?

Waiting for your kind support.

Ipghmagnet
Title: Re: How to move to new ip with new domain
Post by: ipghmagnet on December 08, 2014, 09:18:18
HI every one,

I settled the problem. The only problem is notepad++.
Previously, i use notepad (maybe it doesn't support utf-8.. )

All is finished after change configuration.php.

So easy..

 :P

Thanks all.

Title: Re: How to move to new ip with new domain
Post by: webgift on December 08, 2014, 10:14:14
You are very welcome, @ipghmagnet.