Uploading a WordPress Site: Difference between revisions
Jump to navigation
Jump to search
| (2 intermediate revisions by the same user not shown) | |||
| 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. | ||
** Make certain the client has stopped updating the content of the site. | |||
** 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. | ||
** Using PhpMyAdmin on the production server, login and select the WordPress database. | |||
** Click the '''import''' tab and then select the .sql file exported from staging. | |||
** Use default settings for import. | |||
[[Category:WordPress]] [[Category: Web Development]] | [[Category:WordPress]] [[Category: Web Development]] | ||
Latest revision as of 23:28, 11 February 2013
Overview[edit]
Documentation of necessary steps for uploading a WordPress site.
Workflow[edit]
- Upload the WordPress files
- Edit
/[WP_ROOT]/wp-config.phpto update theDB_HOSTdefinition 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
.htaccessfile that will handle requests based on page names. - Take care to include media uploads (
[WP_ROOT]/wp-content/uploads/)
- Edit
- 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.
- Using PhpMyAdmin on the production server, login and select the WordPress database.
- Click the import tab and then select the .sql file exported from staging.
- Use default settings for import.