• Hello,

    I have an issue that seems complicated and I don’t know if it can be solved. I had to backup a website from one host before the hosting plan ends there, and migrate it along with the domain to another hosting provider. But being a university student with a busy schedule, what I did was the following:
    1. I downloaded all files in the main wordpress folder “public_html”.
    2. I exported the database from phpMyAdmin as a .sql file.
    3. I moved the domain from that hosting provider to the new one.
    The hosting plan ended and the website doesn’t exist anymore.
    Now I’m trying to set up the website on the new host but it’s seems very complicated.
    I tried to copy paste the whole wordpress folder via SFTP as it is, and imported the database tables to the new phpMyAdmin area into a new database. But the website still doesn’t work.

    The old database had a custom prefix, while the new database has a new fixed name, and a new prefix.

    Does anyone has a suggestion on how to bring my website back live using the public_html folder and the .sql file, taking into account all the modifications I have to do to make sure that wordpress will work correctly?

    Thank you for your time in advance.

    • This topic was modified 4 years, 10 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Edit wp-config.php, in the site’s root, to (1) set the table prefix to match your imported database and (2) to verify the DB fields (user, password, host, dbname).

    Thread Starter othmnah

    (@othmnah)

    Sorry I’m a bit lost after I experimented alot with changing these values.

    Which wp-config file should I edit? the one in the public_html folder of the website I would like to migrate? or the one that I can find in the fresh wordpress installation on the new server?

    Because all fields in the original website’s wp-config file already match the tables in the .sql file of the same website.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The one on the new server, in the WP installation that’s not working. When you migrated to a new host, it’s likely that information changed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress structure’ is closed to new replies.