Uploading a WordPress Site: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
Line 6: Line 6:


* Upload the WordPress files
* Upload the WordPress files
** The optimal way is to put the WordPress directory in a tarball, upload, and extract. This requires SSH on the remote server.  
** Edit `/[WP_ROOT]/wp-config.php` to update the `DB_HOST` definition with the correct database server value for the production environment.
** The optimal way is to put the WordPress directory in a tarball, upload, and extract. This requires SSH on the remote server.
** Make sure to upload a `.htaccess` file that will handle requests based on page names.  
** Take care to include media uploads (`[WP_ROOT]/wp-content/uploads/`)
** Take care to include media uploads (`[WP_ROOT]/wp-content/uploads/`)
* Export the staging WordPress database.
* Export the staging WordPress database.
Line 12: Line 14:
** PhpMyAdmin on local machine.  
** PhpMyAdmin on local machine.  
** ''My_WP_Database'' > '''Export''' > ''Default settings'' > ''save as .SQL file''
** ''My_WP_Database'' > '''Export''' > ''Default settings'' > ''save as .SQL file''
** Do a search and replace on the exported file, replacing the staging domain name with the production domain name.
* Import the staging WordPress database.  
* Import the staging WordPress database.  


[[Category:WordPress]] [[Category: Web Development]]
[[Category:WordPress]] [[Category: Web Development]]

Revision as of 23:19, 11 February 2013

Overview

Documentation of necessary steps for uploading a WordPress site.

Workflow

  • Upload the WordPress files
    • Edit /[WP_ROOT]/wp-config.php to update the DB_HOST definition with the correct database server value for the production environment.
    • The optimal way is to put the WordPress directory in a tarball, upload, and extract. This requires SSH on the remote server.
    • Make sure to upload a .htaccess file that will handle requests based on page names.
    • Take care to include media uploads ([WP_ROOT]/wp-content/uploads/)
  • Export the staging WordPress database.
    • Make certain the client has stopped updating the content of the site.
    • PhpMyAdmin on local machine.
    • My_WP_Database > Export > Default settings > save as .SQL file
    • Do a search and replace on the exported file, replacing the staging domain name with the production domain name.
  • Import the staging WordPress database.