{"id":13596,"date":"2012-05-18T18:03:12","date_gmt":"2012-05-18T10:03:12","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=13596"},"modified":"2024-06-05T14:46:09","modified_gmt":"2024-06-05T06:46:09","slug":"update-wordpress-without-ftp","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/","title":{"rendered":"Auto-Update WordPress Without FTP Credentials"},"content":{"rendered":"<p>Updating or upgrading your <a href=\"https:\/\/wordpress.org\/\" rel=\"nofollow noopener\" target=\"_blank\">WordPress<\/a> and plugins can be troublesome if you\u2019re asked for FTP connection details. This often happens when WordPress can\u2019t directly write to your <code>\/wp-content<\/code> folder.<\/p>\n<p>You can address this by adding FTP details to your wp-config.php file. Alternatively, granting write access directly to the <code>\/wp-content<\/code> folder by changing its permissions to 775 (from the default 755 or 644) through FTP can also solve this problem.<\/p>\n<p>A simpler method involves defining a constant, <code>FS_METHOD<\/code>, in your <code>wp-config.php<\/code> file. This single line of code bypasses the need for FTP details and enables automatic updates.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/ssh-to-server-without-password\/\" class=\"ref-block__link\" title=\"Read More: How to SSH into Server Without Password\" rel=\"bookmark\"><span class=\"screen-reader-text\">How to SSH into Server Without Password<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/ssh-to-server-without-password.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-48893 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/ssh-to-server-without-password.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">How to SSH into Server Without Password<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tIn this post, I'll show you how to bypass the password prompt and get you connected to your...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>Open wp-config.php File<\/h2>\n<p>First, locate and open the <code>wp-config.php<\/code> file in the root directory of your WordPress installation (accessible via your <a href=\"https:\/\/wordpress.org\/\/download\/\" rel=\"nofollow noopener\" target=\"_blank\">WordPress installer<\/a> folder).<\/p>\n<h2>Add FS_METHOD Code<\/h2>\n<p>Add the following line at a suitable place in your wp-config.php file:<\/p>\n<pre>define('FS_METHOD','direct');<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/quicktips\/FSmethod.jpg\" width=\"500\" height=\"99\" alt=\"Illustration of adding FS_METHOD in wp-config.php\"><\/figure>\n<h2>Save Changes and Upload<\/h2>\n<p>After inserting the code, save the file and upload it back to the root directory on your server using your hosting control panel.<\/p>\n<h2>Conclusion<\/h2>\n<p>FTP issues are common in shared hosting environments due to permission and ownership conflicts. By implementing the \u2018direct\u2019 method, you can seamlessly update or upgrade your WordPress and its plugins without entering FTP details.<\/p>","protected":false},"excerpt":{"rendered":"<p>Updating or upgrading your WordPress and plugins can be troublesome if you\u2019re asked for FTP connection details. This often happens when WordPress can\u2019t directly write to your \/wp-content folder. You can address this by adding FTP details to your wp-config.php file. Alternatively, granting write access directly to the \/wp-content folder by changing its permissions to&hellip;<\/p>\n","protected":false},"author":111,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3400,49],"tags":[4663,2545,4656,1962],"topic":[4520,4521],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Auto-Update WordPress Without FTP Credentials - Hongkiat<\/title>\n<meta name=\"description\" content=\"Updating or upgrading your WordPress and plugins can be troublesome if you&#039;re asked for FTP connection details. This often happens when WordPress can&#039;t\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Auto-Update WordPress Without FTP Credentials\" \/>\n<meta property=\"og:description\" content=\"Updating or upgrading your WordPress and plugins can be troublesome if you&#039;re asked for FTP connection details. This often happens when WordPress can&#039;t\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-18T10:03:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-05T06:46:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/quicktips\/FSmethod.jpg\" \/>\n<meta name=\"author\" content=\"Mustaza Mustafa\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mustaza Mustafa\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/\"},\"author\":{\"name\":\"Mustaza Mustafa\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/65a4d3ed27a1e14e55eb29ac41b0ee39\"},\"headline\":\"Auto-Update WordPress Without FTP Credentials\",\"datePublished\":\"2012-05-18T10:03:12+00:00\",\"dateModified\":\"2024-06-05T06:46:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/\"},\"wordCount\":205,\"commentCount\":34,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/quicktips\\\/FSmethod.jpg\",\"keywords\":[\"ad-divi\",\"File Transfer\",\"Localhost and Webserver\",\"rr\"],\"articleSection\":[\"Hosting\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/\",\"name\":\"Auto-Update WordPress Without FTP Credentials - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/quicktips\\\/FSmethod.jpg\",\"datePublished\":\"2012-05-18T10:03:12+00:00\",\"dateModified\":\"2024-06-05T06:46:09+00:00\",\"description\":\"Updating or upgrading your WordPress and plugins can be troublesome if you're asked for FTP connection details. This often happens when WordPress can't\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/quicktips\\\/FSmethod.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/quicktips\\\/FSmethod.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/update-wordpress-without-ftp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Auto-Update WordPress Without FTP Credentials\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/65a4d3ed27a1e14e55eb29ac41b0ee39\",\"name\":\"Mustaza Mustafa\",\"description\":\"Mustaza is a traveller, social media lover and a freelance web designer with years of experience working collaboratively over the Internet.\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/mustaza\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Auto-Update WordPress Without FTP Credentials - Hongkiat","description":"Updating or upgrading your WordPress and plugins can be troublesome if you're asked for FTP connection details. This often happens when WordPress can't","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/","og_locale":"en_US","og_type":"article","og_title":"Auto-Update WordPress Without FTP Credentials","og_description":"Updating or upgrading your WordPress and plugins can be troublesome if you're asked for FTP connection details. This often happens when WordPress can't","og_url":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2012-05-18T10:03:12+00:00","article_modified_time":"2024-06-05T06:46:09+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/quicktips\/FSmethod.jpg","type":"","width":"","height":""}],"author":"Mustaza Mustafa","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Mustaza Mustafa","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/"},"author":{"name":"Mustaza Mustafa","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/65a4d3ed27a1e14e55eb29ac41b0ee39"},"headline":"Auto-Update WordPress Without FTP Credentials","datePublished":"2012-05-18T10:03:12+00:00","dateModified":"2024-06-05T06:46:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/"},"wordCount":205,"commentCount":34,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/quicktips\/FSmethod.jpg","keywords":["ad-divi","File Transfer","Localhost and Webserver","rr"],"articleSection":["Hosting","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/","url":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/","name":"Auto-Update WordPress Without FTP Credentials - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/quicktips\/FSmethod.jpg","datePublished":"2012-05-18T10:03:12+00:00","dateModified":"2024-06-05T06:46:09+00:00","description":"Updating or upgrading your WordPress and plugins can be troublesome if you're asked for FTP connection details. This often happens when WordPress can't","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/quicktips\/FSmethod.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/quicktips\/FSmethod.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/update-wordpress-without-ftp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Auto-Update WordPress Without FTP Credentials"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/65a4d3ed27a1e14e55eb29ac41b0ee39","name":"Mustaza Mustafa","description":"Mustaza is a traveller, social media lover and a freelance web designer with years of experience working collaboratively over the Internet.","url":"https:\/\/www.hongkiat.com\/blog\/author\/mustaza\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-3xi","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/13596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/111"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=13596"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/13596\/revisions"}],"predecessor-version":[{"id":72060,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/13596\/revisions\/72060"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=13596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=13596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=13596"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=13596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}