{"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":{"ocean_front_end_style_editor":"no","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[19,81],"tags":[],"class_list":["post-458","post","type-post","status-publish","format-standard","hentry","category-blogger","category-wordpress","entry"],"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}]}}