{"id":4708,"date":"2013-04-16T15:01:15","date_gmt":"2013-04-16T15:01:15","guid":{"rendered":"https:\/\/www.techrounder.com\/blog\/avoid-asking-ftp-credentials-while-installing-or-upgrade-plugins-in-wordpress\/"},"modified":"2026-01-04T11:36:57","modified_gmt":"2026-01-04T11:36:57","slug":"avoid-asking-ftp-credentials-while-installing-or-upgrade-plugins-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.techrounder.com\/blog\/avoid-asking-ftp-credentials-while-installing-or-upgrade-plugins-in-wordpress\/","title":{"rendered":"Avoid Asking FTP Credentials while Installing or Upgrade Plugins in WordPress"},"content":{"rendered":"<p>WordPress may some time ask FTP Credentials while Installing or Upgrade Plugins or even the core WordPress.<\/p>\n<p>The issue is due to the reason that, while be try to perform the action WordPress will first checks whether it has the permission to access the file system directly.<\/p>\n<p>If it does not have the necessary permissions to modify the filesystem , it will ask you for the FTP credentials so that WordPress can try to do what it needs to via FTP.<\/p>\n<p>This issue can be resolved by adding the following code in the <strong>wp-config.php<\/strong> file in the root folder.<\/p>\n<pre lang=\"php\">\r\ndefine( 'FS_METHOD', 'direct' );\r\ndefine( 'FS_CHMOD_DIR', 0777 );\r\ndefine( 'FS_CHMOD_FILE', 0777 );\r\n<\/pre>\n<p>Now the WordPress will have the permissions to modify the filesystem directly.<\/p>\n","protected":false},"excerpt":{"rendered":"WordPress may some time ask FTP Credentials while Installing or Upgrade Plugins or even the core WordPress. The&hellip;","protected":false},"author":2,"featured_media":1482,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"csco_post_video_bg_volume":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-4708","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress","cs-entry","cs-video-wrap"],"_links":{"self":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/posts\/4708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/comments?post=4708"}],"version-history":[{"count":0,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/posts\/4708\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/media\/1482"}],"wp:attachment":[{"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/media?parent=4708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/categories?post=4708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techrounder.com\/blog\/wp-json\/wp\/v2\/tags?post=4708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}