Difference between revisions of "WordPress"
Jump to navigation
Jump to search
(Zeroth Version) |
(wp-includes/languages) |
||
Line 19: | Line 19: | ||
#*wp-content/themes | #*wp-content/themes | ||
#*wp-content/uploads | #*wp-content/uploads | ||
#*wp-includes/languages | |||
#cd wordpress-''oldversion'' (e.g. 2.3.1) | #cd wordpress-''oldversion'' (e.g. 2.3.1) | ||
#find `cat ../wp-files-to-preserve` | cpio -pdvlm ../wordpress-''newversion'' | #find `cat ../wp-files-to-preserve` | cpio -pdvlm ../wordpress-''newversion'' |
Revision as of 11:06, 12 March 2008
Upgrading WordPress
Assumptions:
- cd gets you to the parent of the httpdocs directory
- wordpress directories are named wordpress-version, e.g. wordpress-2.3.3
- httpdocs is a symlink to the current wordpress directory
To upgrade:
- cd
- wget http://wordpress.org/latest.zip
- unzip latest.zip
- rm latest.zip
- mv wordpress wordpres-newversion (e.g. 2.3.3)
- mysqldump database name of blog > database name of blog.sql
- Update the file wp-files-to-preserve to include all files and directories you want to or must keep. Create it if it does not exist. Typical, it includes:
- .htaccess
- favicon.ico
- wp-config.php
- wp-content/plugins
- wp-content/themes
- wp-content/uploads
- wp-includes/languages
- cd wordpress-oldversion (e.g. 2.3.1)
- find `cat ../wp-files-to-preserve` | cpio -pdvlm ../wordpress-newversion
- cd ..
- rm httpdocs
- ln -s wordpress-newversion httpdocs
- Browse wesbite/wp-admin/upgrade.php
- Reactivate all plugin-ins
And you're done.