1,723
edits
m |
m |
||
Line 3: | Line 3: | ||
*Make a copy of the Database: Using phpMyAdmin, Select the database in the left pane, Export Tab, "Simple" Radio Button, Go Button, save it to a file, done. | *Make a copy of the Database: Using phpMyAdmin, Select the database in the left pane, Export Tab, "Simple" Radio Button, Go Button, save it to a file, done. | ||
*Make a copy of the Website Files: tar -cvzf /WhatEverDestinationFileName.tar.gz /WhatEverPathToSource/* (De-Compress: gunzip WhatEverFileName.tar.gz, tar xf WhatEverFileName.tar) | *Make a copy of the Website Files: tar -cvzf /WhatEverDestinationFileName.tar.gz /WhatEverPathToSource/* (De-Compress: gunzip WhatEverFileName.tar.gz, tar xf WhatEverFileName.tar) | ||
**The .htaccess file presents a bit of an issue when "tarring", so copy it manually. | |||
*Move or copy the saved database and website files to another server: rsync -vP WhatEverFileName UserName@URLorIPAddress:/WhatEverPath (rsync -vP switch is "verbose" and "progress meter") | *Move or copy the saved database and website files to another server: rsync -vP WhatEverFileName UserName@URLorIPAddress:/WhatEverPath (rsync -vP switch is "verbose" and "progress meter") | ||
*Check or Correct Permissions and Ownership | *Check or Correct Permissions and Ownership | ||
Line 10: | Line 11: | ||
*If using Let's Encrypt SSL Certificates, move Certificates to the new server: /etc/letsencrypt/archive, live, renewal (there are symbolic links in the live directory): rsync -avzP /etc/letsencrypt/archive/ UserName@URLorIPAdddress:/etc/letsencrypt/archive/ (repeat for each directory, the "a" switch will preserve symbolic links, find . -type l -ls will display the symbolic links) | *If using Let's Encrypt SSL Certificates, move Certificates to the new server: /etc/letsencrypt/archive, live, renewal (there are symbolic links in the live directory): rsync -avzP /etc/letsencrypt/archive/ UserName@URLorIPAdddress:/etc/letsencrypt/archive/ (repeat for each directory, the "a" switch will preserve symbolic links, find . -type l -ls will display the symbolic links) | ||
*Change DNS Settings | *Change DNS Settings | ||
*Configure new Apache Configuration File | |||
*Configure any new directories necessary: Log Files for Apache, etc. | |||
*Upgrade WordPress or change PHP version if needed, the former recommended. | |||
All of the above assumes the new server has the same services running like Apache, PHP, MariaDB / mySQL, etc. | All of the above assumes the new server has the same services running like Apache, PHP, MariaDB / mySQL, etc. | ||
<br /> | <br /> |