Upgrade wordpress via ssh

by Herman Tarigan on October 10, 2007

1.Login via SSH to your host

2.Create abd Go to a temporary directory: cd /tmp (example)
me@titik.org [~/www]# mkdir tmp
me@titik.org [~/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@titik.org [~/www/spa/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@titik.org [~/www/tmp]# tar zxf latest.tar.gz

5. You should now see a wordpress directory extracted in the currect location, g
o in it: cd wordpress/
me@titik.org [~/www/tmp]# cd wordpress/

6. Copy the default themes to your WP installâs wp-content/themes directory: cp
-R wp-content/themes/* ~/public_html/wp-content/themes/
me@titik.org [~/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âs wp-con
tent/plugins directory: cp -R wp-content/plugins/* ~/public_html/wp-content/plugins/

me@titik.org [~/www/tmp/wordpress]# cp -R wp-content/plugins/* ~/public_html/wp-content/plugins/

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

9. Copy all other files and directories of the new version onto the WP installat
ion path (overwriting the older ones)
me@titik.org [~/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!

Herman Tarigan

Pernah menjadi Operator warnet, Customer Service Webhosting, System Administrator Webhosting, Website (SEO) Consultant, Operational Manager, Marketing dan sekarang memilih menjadi FREELANCE :)

Incoming search terms for the article:

cara setting wordpress di ssh, instal wordpress via ssh, nama baju adat yogyakarta, ssh wp upgrade, web/wp-content/upgrade/wordpress-3 tmp
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • LinkedIn
  • Live
  • Print this article!
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word