Skip to Content
Menu
This question has been flagged
1 Reply
5239 Views

I have designed a client's website on odoo. I was not sure whether to approve it but fortunately, it has been approved. Now I need to migrate the website to another hosting and domain provided by the customer. Please someone help me!

Avatar
Discard
Best Answer

Hi,

You can try the following method.

1.Install Odoo on the new server once it has been set up.

2.To transfer an Odoo server, you must first create a backup of it. Make a "Backup" by going to the odoo database manager. "Restore Database" will help you download the backup and transfer it to the new server.

3.On your domain provider's website, update the DNS. Update an "A" record with the new IP (new server IP).

4.Consider that a DNS record update may take more than 24 hours in some circumstances before you shut down or terminate the old server. Additionally, since the new server is functional, you don't want your users to use the old one. Update your outdated Apache2/nginx server to avoid complications and complete this operation:

server {
server_name .yourdomain.com;
return 301 http://www.newServerAddress.com;
}

Visitors and users who access the server using your domain will be forwarded to the new server. Keep in mind that you must restart nginx or Apache2 after changing it:

$ sudo /etc/init.d/apache2 restart (for Apache2)
$ sudo /etc/init.d/nginx restart (for nginx)

Turn off the old Odoo server to be certain that no operations occurs there:

$ sudo service odoo stop

If you encountered an error, it is likely that your Odoo service has a different name. To verify, access the Odoo configuration file or use "ps -Al." All the services that are active on your system will be listed here.

Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 22
1657
3
Mar 15
4926