Upgrade WordPress via ssh (Shell Access)

by wp-magz on August 27, 2008

1.Login via SSH to your host

2.Create abd Go to a temporary directory: cd /tmp (example)
me@wp-magz.com [~/www]# mkdir tmp
me@wp-magz.com [~/www]# cd tmp/

3.Grab the latest WP archive: wget http://wordpress.org/latest.tar.gz

4.Extract the archive contents latest.tar.gz
me@wp-magz.com [~/www/tmp]# wget http://wordpress.org/latest.tar.gz
–15:28:54– http://wordpress.org/latest.tar.gz
=> `latest.tar.gz’
Resolving wordpress.org… 72.233.56.139, 72.233.56.138
Connecting to wordpress.org|72.233.56.139|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [application/x-gzip]
[ <=> ] 870,766 11.39K/s
15:30:28 (9.17 KB/s) – `latest.tar.gz’ saved [870766]
me@wp-magz.com [~/www/tmp]# tar zxf latest.tar.gz

5. You should now see a wordpress directory extracted in the currect location, go in it: cd wordpress/
me@wp-magz.com [~/www/tmp]# cd wordpress/

6. Copy the default themes to your WP install wp-content/themes directory:
cp -R wp-content/themes/* ~/public_html/wp-content/themes/
me@wp-magz.com [~/www/tmp/wordpress]# cp -R wp-content/themes/* ~/public_html/wp-content/themes/

7.Copy the bundled plugins (Hello Dolly and Akismet) to your WP install wp-content/plugins directory:
me@wp-magz.com [~/www/tmp/wordpress]# cp -R wp-content/plugins/* ~/public_html/wp-content/plugins/

8. Delete the wp-content directory
me@wp-magz.com [~/www/tmp/wordpress]# rm -rf wp-content/

9. Copy all other files and directories of the new version onto the WP installation path (overwriting the older ones) :
me@wp-magz.com [~/www/tmp/wordpress]# cp -R * ~/public_html/

To complete the process, run the WP upgrade script at
http://yoursite/wp-admin/upgrade.php.

That’s it! Enjoy your upgraded WP!

Random Wordpress Magazines

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>