Despre mine
Sunt katmai, bine ati venit in lumea mea. Enjoy
Am pus pe foaie ...
The word is already out that WordPress 2.1.1 is severely vulnerable and you have to upgrade to WordPress 2.1.2 to keep your blog safe.
Since the release of 2.1 we have seen two upgrades in little over a month and upgrading WordPress can be a real pain in the neck. It becomes really bad when you’re talking about upgrading more than one blog.
For those who have shell access upgrading WordPress can be a lot less painful and this guide hopes to set you establish just that. I upgraded three installations in less than fifteen minutes. It would have been faster but I am sure I saved a great more time had I to do it the hard way!
Firstly, make sure you backup your installation. There are a lot of guides explaining this, so I won’t go into detail, unless you want me to.
Once, the database is backed up, login to your account via shell and navigate to the folder of your WordPress installation. Mine is installed in public_html itself.
Once in there run the following commands:
Code (bash)
-
wget http://wordpress.org/latest.tar.gz
-
tar xfz latest.tar.gz
-
rm -rf ./wp-includes/
-
rm -rf ./wp-admin/
-
cd wordpress/
-
cp -rpf â€â€-reply=yes * ../
-
cd ..
-
rm -rf ./wordpress/
-
rm -f latest.tar.gz
The above commands will fetch the latest WordPress installation and untar it. It then deletes wp-includes and wp-admin and all its subfolders and files. If you have modified any files in there, you will need to make the modifications again.
We then copy the newly downloaded files to your existing WordPress installation.
The untarred files and the downloaded .tar.gz file are deleted.
After running the command above, run the upgrade file in /wp-admin/upgrade.php in your browser.
While this guide will work with just about any WordPress upgrade, I advise you to use it only for minor updates. When making a major upgrade, say from 2.0 to 2.1, it is advisable to delete all the old WordPress files before moving the new ones.
I haven’t touched wp-content and its subfolders above to ensure your existing files, plugins and themes are not effected. Any new files, plugins and themes that come bundled with the new version of WordPress will overwrite the existing ones.
Ohh… and tell me how much time this has saved you.
Note:
- The code above will work only on a Linux / Unix server.
- I’ve been informed that the
--replymay not work/be needed on certain Linux installations. - It also assumes that you are logging in to the shell via you’re own account. If you login via
root, the permissions will change and you will need to runchown -R username *(change username to the account owner’s username) to correct the permissions. This can cause problems with WP-Cache, so you will need to reinstall the plugin again.
Disclaimer: Make sure you backup your installation. I won’t be held responsible if something goes wrong when you follow this guide.
1 users resposed " Upgrading WordPress via Shell "
June 23 2008
FajKxK Blogs rating, add your blog to be rated for free:
http://blogsrate.net
Categorii
- Admin Side (157)
- Chestii care te scot din minti (37)
- From my heart (56)
- Fun Stuff (159)
- Funny videos (45)
- Games / Trailers / Reviews (33)
- Iran Crisis (73)
- Jurnal (4)
- Linux/Unix/BSD (7)
- Media / News (185)
- Microsoft windows training (1)
- Movie Trailers (21)
- Retardo World (1)
- Tech News (79)
- Tutorials - cPanel (26)
- Uncategorized (27)
A fost odata ...
- August 2008 (13)
- June 2008 (1)
- May 2008 (5)
- April 2008 (11)
- March 2008 (10)
- February 2008 (24)
- January 2008 (25)
- December 2007 (32)
- November 2007 (34)
- October 2007 (36)
- September 2007 (40)
- August 2007 (39)
- July 2007 (61)
- June 2007 (54)
- May 2007 (71)
- April 2007 (84)
- March 2007 (235)
- February 2007 (137)
Blogroll
- Adaam
- Ai Carte Ai Parte
- Andaa
- Ania
- ArhiBLOG
- Celebrity news
- Content mirroring
- Cultura - Boyarul
- Dmitry
- Educativ.RO
- FORUM 512KBPS
- Fulgerica
- Gogu Kaizer
- Groparu
- Hackers Blog
- Hypnotic Words
- IEBlog
- Jaxelos
- Lolisme
- Lywyu
- MarieJeanne
- Mile Carpenisan
- Mina
- Minte Creata
- Muzica
- N-are nume
- NGINXforums
- Papa Bun (yummy)
- Piticu` - cine altu` ?
- Programare Sociala
- psyBNC / IRC shells
- Scenarii
- Secure Mail
- SFRO
- Subiectiv
- Swamp
- Syncron
- Vis Urat
- waven
- WhiteWolf
- Xpertu
© 2007 by katmai - Unplugged, Unmatched, Unleashed | Hosted by Design-Services.Us










Au criticat ...