{"id":458,"date":"2008-12-18T13:26:10","date_gmt":"2008-12-18T13:26:10","guid":{"rendered":"http:\/\/akuadi.org\/life\/?p=458"},"modified":"2008-12-18T13:26:10","modified_gmt":"2008-12-18T13:26:10","slug":"upgrade-wordpress-in-linux","status":"publish","type":"post","link":"https:\/\/akuadi.org\/life\/blog\/2008\/12\/18\/upgrade-wordpress-in-linux\/","title":{"rendered":"Upgrade WordPress in Linux"},"content":{"rendered":"<p>Here i attach and show how to upgrade the wordpress using Linux Workstation.. I just copy it from http:\/\/www.cyberciti.biz\/<\/p>\n<div class=\"headline_area\">\n<h1 class=\"entry-title\">Upgrade WordPress 2.7 in 3 Simple Steps<\/h1>\n<p class=\"headline_meta\">by <span class=\"author vcard fn\">Vivek Gite<\/span><span class=\"author vcard fn last updated\"> [Last updated: December 11, 2008]<\/span><\/p>\n<\/div>\n<div style=\"float: right; margin-top: 0px; margin-left: 5px;\"><a title=\"See all Bash\/Shell scripting related tips\/articles\" href=\"http:\/\/www.cyberciti.biz\/tips\/category\/shell-scripting\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/figs.cyberciti.biz\/3rdparty\/terminal.png\" border=\"0\" alt=\"\" \/><\/a><\/div>\n<p><a href=\"http:\/\/www.cyberciti.biz\/tips\/download-wordpress-27.html\" target=\"_blank\" rel=\"noopener\">WordPress version 2.7<\/a> has been released and can be upgraded easily using UNIX \/ Linux shell prompt. A few assumptions:<\/p>\n<ol>\n<li>WordPress database name: <strong>wptheosblog<\/strong><\/li>\n<li>WordPress directory name: <strong>\/var\/www\/html\/theos.in<\/strong><\/li>\n<li>WordPress domain name: <strong>theos.in<\/strong><\/li>\n<li>Operating system: <strong>Linux<\/strong><\/li>\n<\/ol>\n<div style=\"padding: 2px 0px 2px 0.5em; background: #fbfbfb none repeat scroll 0% 0%; border: 1px 1px 1px 10px solid #aaaaaa #aaaaaa #aaaaaa #b22222;\"><img decoding=\"async\" style=\"vertical-align: middle;\" title=\"Warning examples may crash your computer\" src=\"http:\/\/figs.cyberciti.biz\/warning-40px.png\" alt=\"\" \/><strong>WARNING!<\/strong> If you are not comfortable with UNIX shell prompt (IF YOU ARE new to a UNIX\/Linux os), please follow traditional way of <a href=\"http:\/\/codex.wordpress.org\/Upgrading_WordPress_Extended\" target=\"_blank\" rel=\"noopener\">upgrading wordpress<\/a> and DO NOT use the three Steps described here.<\/div>\n<h2>Step # 1: Backup old files and database<\/h2>\n<p>If you run into problems Upgrading WordPress with the three Steps described here, you need to revert to your old version. Login to your hosting account using ssh client. <a href=\"http:\/\/www.cyberciti.biz\/faq\/tag\/mysqldump-command\/\" target=\"_blank\" rel=\"noopener\">Backup your mysql database<\/a>, enter:<br \/>\n<code>$ mkdir ~\/theos.backup<br \/>\n$ mysqldump -u vivek -p 'passWord' -h localhost wptheosblog &gt;  ~\/theos.backup\/wptheosblog.sql<\/code><br \/>\nNow backup all existing wordpress files, enter:<br \/>\n<code>$ mkdir ~\/theos.backup\/old<br \/>\n$ cd \/var\/www\/html\/theos.in\/<br \/>\n$ cp -avr * ~\/theos.backup\/old<\/code><\/p>\n<p>Next, login to your wordpress and disable all plugins.<\/p>\n<h2>Step # 2: Download wordpress 2.7 in \/tmp<\/h2>\n<p>Type the following command (use <a href=\"http:\/\/www.cyberciti.biz\/tips\/linux-wget-your-ultimate-command-line-downloader.html\" target=\"_blank\" rel=\"noopener\">wget command<\/a> to grab latest version):<br \/>\n<code>$ cd \/tmp<br \/>\n$ wget http:\/\/wordpress.org\/latest.zip -O latest.zip<\/code><br \/>\nSample output:<\/p>\n<pre>--03:29:37--  http:\/\/wordpress.org\/latest.zip\r\nResolving wordpress.org... 72.233.56.139, 72.233.56.138\r\nConnecting to wordpress.org|72.233.56.139|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: unspecified [application\/zip]\r\nSaving to: `latest.zip'\r\n\r\n    [         &lt;=&gt;                            ] 1,849,558    987K\/s   in 1.8s   \r\n\r\n03:29:39 (987 KB\/s) - `latest.zip' saved [1849558]<\/pre>\n<p>Unzip file, enter:<br \/>\n<code>$ unzip latest.zip<\/code><\/p>\n<h2>Step # 3: Upgrade wordpress<\/h2>\n<p>Overwrite all files, enter:<br \/>\n<code>$ cd \/var\/www\/html\/theos.in<br \/>\n$ rm -rf wp-admin wp-includes<br \/>\n$ cp -avr \/tmp\/wordpress\/* .<\/code><br \/>\nFire a browser and type<br \/>\n<code>http:\/\/yourblog.com\/wp-admin\/upgrade.php<\/code><br \/>\nOR<br \/>\n<code>http:\/\/theos.in\/wp-admin\/upgrade.php<\/code><br \/>\nLogin to wordpress admin panel and enable all plugins.<\/p>\n<p>Credit to:<\/p>\n<p><a href=\"http:\/\/www.cyberciti.biz\/tips\/howto-upgrade-wordpress-27-using-shellprompt.html\" target=\"_blank\" rel=\"noopener\">CyberCiti<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here i attach and show how to upgrade the wordpress using Linux Workstation.. I just copy it from http:\/\/www.cyberciti.biz\/ Upgrade WordPress 2.7 in 3 Simple Steps by Vivek Gite [Last updated: December 11, 2008] WordPress version 2.7 has been released and can be upgraded easily using UNIX \/ Linux shell prompt. A few assumptions: WordPress [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,81],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-blogger","category-wordpress"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/comments?post=458"}],"version-history":[{"count":0,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/458\/revisions"}],"wp:attachment":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/media?parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/categories?post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/tags?post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}