Jump to content

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


modifiedcontent
 Share

Recommended Posts

10 minutes ago, JerryDi said:

replacing the config file from the original install

Did you change the database connection details to match the new (database) server?

Did you install ProcessWire on the new server prior to moving all files or did you just move over the old files?

Link to comment
Share on other sites

Hi

yes, I've changed the setting for the new database and also the tableSalt settings

I installed Processwire first, then swapped out the Site folder as per the process at the top of this topic

thanks

Jerry

Link to comment
Share on other sites

I have tried to use the Duplicator module, however despite my PHP ver 8.2 showing that the zip extension is enabled, Duplicator says it's not present and won't create a package.
As it stands I am faced with being totally unable to move to a new server. 
Any guidance would be much appreciated

 

Link to comment
Share on other sites

21 hours ago, JerryDi said:

yes, I've changed the setting for the new database and also the tableSalt settings

 

The tableSalt belongs to each installation, so this is probably the reason you can't login.

The absolute easiest way, in my opinion, is to just move all files from A to B (including all those hidden files, like .htaccess), import the database manually via either command line or PHPMyAdmin or whatever exists on the server, then fixing the connection details for the database in /site/config.php.

It might be easier and faster to move ZIP files - you have to decide this for yourself.

Step by Step

  1. Download all files from Server A (including .htaccess and other hidden files)
  2. Export the database with Database Backups
  3. Upload all files to Server B (including .htaccess and other hidden files)
  4. Import the database
  5. Edit /site/config.php and change database connection settings
  6. Check and update folder and file permissions - see guide here
Link to comment
Share on other sites

thank you! I have done this and can see from the home page that the migrated database can be seen by PW

Just one problem....for some reason my admin login doesn't work on the new server. I've only changed the database name in the config.php file

Any idea how I can resolve that?

Many thanks

  • Like 1
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...