Jump to content
modifiedcontent

Best way to move a Processwire site to a new server 2020?

Recommended Posts

What is currently the best way to move a Processwire site to a new server?

I have to upgrade my VPS, from CentOS 6 to CentOS 8. I have several relatively complicated Processwire websites. I am currently downloading all the files via FTP. I will export databases next.

I guess I'll use Export Site Profile. Or had that been replaced by something else? New modules that I missed?

Or will the FTP'ed files + exported database be enough? Just copy them 1-on-1 to the new server and it will all work?

What can go wrong? What are the pitfalls to watch out for?

 

Share this post


Link to post
Share on other sites

The procedure I use is:

Old Server:

  1. Download the database export.
  2. Download the site folder (you can skip cache).

New Server:

  1. Install Processwire (same version).
  2. Delete the site folder and Empty the database.
  3. Upload the site folder from the old host.
  4. Import the database from the old host.
  5. Empty cache and sessions.
  6. Update the config.php where necessary (database credentials, etc.).

Creating a site profile is not necessary.

[edit]
Since all my machines are *nix based, I use rsync to maintain duplicates:
 

rsync -azP host:source destination

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

I did just that with the DEV version of the Duplicator module. It went super smooth.

  1. Install the module (dev version)
  2. change some settings
  3. create an export
  4. download installer and archive
  5. upload installer and archive
  6. done

All you need is a new database and of course access to upload those files.

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
21 hours ago, modifiedcontent said:

Or will the FTP'ed files + exported database be enough? Just copy them 1-on-1 to the new server and it will all work?

That should be enough. You just need to make sure that the server setup works, so I'd install a fresh copy of PW manually to see if that works. Then you create the db user on the new server, restore the db, copy your files and you should be up and running.

I'm not saying anything against the other 2 recommendations. Just answering your question 😉 

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...