Digital Strategy Works - Moving Wordpress

879 views

Published on

Moving Wordpress from server to server

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
879
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Digital Strategy Works - Moving Wordpress

  1. 1. Moving Wordpress Migrating from server to server. Presented by Tony Zeoli Founder, Digital Strategy Works http://www.digitalstrategyworks.com
  2. 2. <ul><li>On your own server </li></ul><ul><li>To another server </li></ul><ul><li>http://codex.wordpress.org/Moving_WordPress </li></ul><ul><li>Linux commands might be important for speed: http://www.oreillynet.com/linux/cmd/ </li></ul>Moving Wordpress
  3. 3. <ul><li>Backup database </li></ul><ul><ul><li>Use Admin – Tools – Export </li></ul></ul><ul><ul><li>Or login in C-Panel and use MySql Admin (phpMyAdmin) </li></ul></ul>Moving Wordpress to another server
  4. 4. <ul><li>Apple’s have Terminal </li></ul><ul><ul><li>Must enable SSH through your C-Panel </li></ul></ul><ul><li>Putty for PC, or use DOS prompt </li></ul>Using Terminal or equivalent
  5. 5. <ul><li>Backup entire Wordpress folder to Desktop </li></ul><ul><li>Or use linux commands to “cp” Wordress directory to a new temp directory </li></ul><ul><ul><li>cp -r /home/hope/files/* /home/hope/backup </li></ul></ul><ul><ul><li>In the above example the cp command would copy all files, directories, and subdirectories in the /home/hope/files directory to the /home/hope/backup directory. </li></ul></ul><ul><li>Use linux commands to “tar” Wordpress directory with name like “old wordress” </li></ul>Preparing to Wordpress
  6. 6. <ul><li>.tar the Wordpress directory </li></ul><ul><ul><li>Is easier to download/upload to new server as one file, instead of the hundreds of files that make up Wordpress </li></ul></ul><ul><ul><li>tar -cvwf home.tar home/ </li></ul></ul><ul><ul><li>In the above example command the system would create a tar file named home.tar in the directory you currently are in of the home directory </li></ul></ul><ul><li>Download the compressed directory </li></ul>Preparing to Wordpress
  7. 7. <ul><li>Upload to the new server </li></ul><ul><li>Extract the files </li></ul><ul><ul><li>tar -xvwf myfile.tar </li></ul></ul><ul><ul><li>In the above example command the system would uncompress (untar) the myfile.tar file in the current directory. </li></ul></ul><ul><li>Make sure you upload to /home/wordpress, if you want to move the index.php file, so that Wordpress is in its own directory and the home directory isn’t cluttered. </li></ul>Preparing to Wordpress
  8. 8. FTP <ul><li>Log-in to host account via FTP </li></ul><ul><ul><li>WS_FTP (Win) </li></ul></ul><ul><ul><li>Fetch (Mac) </li></ul></ul><ul><ul><li>Upload “Wordpress” folder to main directory. You can rename “blog” or “site” now. Not later. </li></ul></ul>
  9. 9. FTP <ul><li>There are two ways, both use ssh: </li></ul><ul><ul><li>scp -r sourcedir/ user@dest.com:/dest/dir/ </li></ul></ul><ul><li>or, the more robust and faster (in terms of transfer speed) method: </li></ul><ul><ul><li>rsync -auv -e ssh --progress sourcedir/ user@dest.com:/dest/dir/ </li></ul></ul>
  10. 10. Installation: Database <ul><li>One click Database setup – MySql Administration </li></ul>
  11. 11. Installation: MySql DB <ul><li>Create your database. </li></ul><ul><ul><li>Description (Name your Database) </li></ul></ul><ul><ul><li>Choose MySql Version (choose latest – 5.0) </li></ul></ul><ul><ul><li>Enter a Password, re-enter (write it down!) </li></ul></ul><ul><ul><li>Set-up </li></ul></ul>
  12. 12. Installation: MySql <ul><li>Save your DB info, you’ll need it later </li></ul>
  13. 13. <ul><li>Upload your DB backup, browse desktop, will recognize and install </li></ul>Reconnect Wordpress
  14. 14. <ul><li>Change your site URL in wp_options table to reflect the domain of your new host for now. </li></ul>Change Site URL
  15. 15. Installation: Wordpress Directory <ul><li>Review contents of Wordpress folder </li></ul><ul><li>Look for wp-config-sample.php </li></ul>
  16. 16. Change Settings <ul><li>Open wp-config </li></ul><ul><ul><li>BB Edit </li></ul></ul><ul><ul><li>Text Editor </li></ul></ul>
  17. 17. Change Domain Name <ul><li>After you redirect domain, login to your admin and change the domain name in the General Setting panel. </li></ul>

×