Hosting migration

Hello,

I want to change hosting, so I used FileZilla to retrieve my WordPress site, and via MySQL I got my database. I reinstalled everything on my new host, modified the DNS zone for the domain name… but my site shows as under construction. I don’t understand what’s wrong.

Hello @Tang

Which domain?

Just in case, via FILEZILLA in SFTP mode:

  • Replace /www/index.html
  • With /www/index_OVH.html

Here is a short guide I wrote that might give you some clarification for a complete and clean installation of your site.

Guide – Understanding the Relationship Domain > DNS Zone > Hosting > Site Folder

See --> CMS – WordPress – Installation Guide at OVH

Read and verify your situation by following carefully the paragraphs: A to J valid for all CMS

Feel free to give me feedback: positive or negative.
That’s how I fine‑tune my guide.
If my answer is the solution, please click "Approve the solution"

Hello Gaston,

Thank you for your response.

I solved my problem (with the help of ChatGPT :shushing_face: )

Actually, in my database the tables started with mod99_ instead of wp_, an evolution in WordPress I think between the creation of my site five years ago and its migration today.

So I changed the line in wp-config.php

$table_prefix = 'wp_'; to $table_prefix = 'mod99_';

And everything started working like magic.

You just needed to know it; the slightest mistake on the web is so sensitive!

Thanks again, Gaston, and best wishes.

I’m taking advantage of this thread to share a plugin I especially appreciate:
If you want to perform a migration without worrying about FTP migration and the database (with the correct prefixes), you can also use this plugin: https://fr.wordpress.org/plugins/all-in-one-wp-migration/

It’s very handy :slight_smile:

Astérix

Hello

I'm having a bit of trouble understanding; normally you should have retrieved the wp-config.php file from your old site.

And this file should have the table prefix as it was on the old site.

Now if you have table prefixes such as wp_, that would mean you performed a fresh WordPress installation rather than transferring your old site.

Yes, in the end I installed a fresh new WordPress and I had made a backup via UpDraft, which I installed on the new site and then restored it that way...

Very good plugin! It reminded me of when I was young and used WP more often :relieved_face: now I'm a pro and I use Joomla :man_dancing:t2: haha

UpDraft doesn’t work every time. I’ve already tried.

Yes, indeed!

Sometimes it's due to incompatibilities with other plugins or simply because of limitations and configurations of the server itself.

The great thing about WordPress is that it has many alternatives; for example, Duplicator in its free version is very powerful.

Cheers, everyone :wink:

Hello Obélix

Personally I use a manual duplication:

See in my guide the paragraph: V6 - Fully manual duplication

haha the blame is on @Asterix :joy:

Cool! I'll take a look, thanks buddy @Gaston !