Move a Wordpress Website Manually: Difference between revisions
mNo edit summary |
|||
Line 28: | Line 28: | ||
***If Samba is set up, use Windows Explorer | ***If Samba is set up, use Windows Explorer | ||
***rsync -vP WhatEverFileName UserName@URLorIPAddress:/WhatEverPath (rsync -vP switch is "verbose" and "progress meter") | ***rsync -vP WhatEverFileName UserName@URLorIPAddress:/WhatEverPath (rsync -vP switch is "verbose" and "progress meter") | ||
***rsync -avz --info=progress2 /SourceDirectory/ root@TargetIPAddress:/Directory/ | |||
**Note: The .htaccess file can present a bit of an issue when "tarring", so check it and copy manually if needed. | **Note: The .htaccess file can present a bit of an issue when "tarring", so check it and copy manually if needed. | ||
Line 42: | Line 43: | ||
**find WhatEverDirectoryName -type f -exec chmod 644 {} \; | **find WhatEverDirectoryName -type f -exec chmod 644 {} \; | ||
=== Web Server Configuration Apache, NGINX, etc. and DNS === | ===Web Server Configuration Apache, NGINX, etc. and DNS=== | ||
Modify directory path names if needed. | Modify directory path names if needed. | ||
Line 49: | Line 50: | ||
DNS: Make sure DNS records reflect any name changes. | DNS: Make sure DNS records reflect any name changes. | ||
=== WordPress === | ===WordPress=== | ||
If making any changes to the name of the website, like www.WhatEverWebsiteName.com to WhatEverWebsiteName.com, then modify the following; | If making any changes to the name of the website, like www.WhatEverWebsiteName.com to WhatEverWebsiteName.com, then modify the following; | ||
* wp-config.php: $web_site = 'WhatEverWebsiteName.com'; | *wp-config.php: $web_site = 'WhatEverWebsiteName.com'; | ||
* Database: wp_options, siteurl and home, set to correct name if needed | *Database: wp_options, siteurl and home, set to correct name if needed | ||
=== SSL (really TLS), Certificates, etc. === | ===SSL (really TLS), Certificates, etc.=== | ||
*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. | ||
=== Redirects === | ===Redirects=== | ||
If any custom redirect files are used (redirect.html, redirect.php) to redirect HTTP to HTTPS, modify them. | If any custom redirect files are used (redirect.html, redirect.php) to redirect HTTP to HTTPS, modify them. |