{"id":1269,"date":"2019-03-25T20:46:17","date_gmt":"2019-03-25T20:46:17","guid":{"rendered":"https:\/\/cloudhost.com.ng\/blog\/?p=1269"},"modified":"2019-03-25T20:47:45","modified_gmt":"2019-03-25T20:47:45","slug":"solvedwordpress-asking-for-ftp-credentials-when-installing-plugins-or-uploading-to-blog","status":"publish","type":"post","link":"https:\/\/cloudhost.com.ng\/blog\/solvedwordpress-asking-for-ftp-credentials-when-installing-plugins-or-uploading-to-blog\/","title":{"rendered":"[Solved] WordPress asking for FTP Credentials when installing Plugins or uploading to Blog"},"content":{"rendered":"\n<p>As a WordPress admin, it can be both frustrating and surprising if you want to perform a quick update on your site, and upon upload, or delete\/installation of a Plugin, wordpress presents you with connection information &#8220;To perform the requested action WordPress needs to access your web server. Please enter your your ftp credentials to proceed&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"499\" src=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2019\/03\/wordpress-asking-for-ftp-for-plugin-istallation.jpg\" alt=\"wordpress asking for ftp for plugin installation CloudHost\" class=\"wp-image-1270\" srcset=\"https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2019\/03\/wordpress-asking-for-ftp-for-plugin-istallation.jpg 617w, https:\/\/cloudhost.com.ng\/blog\/wp-content\/uploads\/2019\/03\/wordpress-asking-for-ftp-for-plugin-istallation-300x243.jpg 300w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/figure>\n\n\n\n<p>You might be tempted to enter an FTP password , and details, though it will perform the action you wish to perform at that instance, WordPress will still keep  asking for the these credentials to be supplied until you fix the underlining issue.<\/p>\n\n\n\n<p>What is  the issue that causes <strong>WordPress asking for  FTP Credentials when installing Plugins or uploading to Blog <\/strong> ?<\/p>\n\n\n\n<p>Its especially a file permission\/Ownership issue, it means that some , all, or most of your WordPress files are owned by a user other than your account user\/ a user php has access to run certain commands under.<\/p>\n\n\n\n<p>In my case most of the files in WordPress directory were owned by the root user. <\/p>\n\n\n\n<p>So I run below command on my VPS where i have my WordPress installed<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chown -R myuser:myuser public_html\/*<br><\/pre>\n\n\n\n<p>this above command will change ownership off all files in the public_html to be owned my myuser (Replace this with your string you have in myuser here=> \/home\/<strong>myuser<\/strong>\/public_html)<\/p>\n\n\n\n<p>After I did this, and i retried doing the action i was performing that was throwing the FTP connection credentials request dialogue, I was able to perform the action and all other actions following it without getting that dialouge again.<\/p>\n\n\n\n<p>If you have another way to clear this error\/have questions, please share in the comment section<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a WordPress admin, it can be both frustrating and surprising if you want to perform a quick update on your site, and upon upload, or delete\/installation of a Plugin, wordpress presents you with connection information &#8220;To perform the requested action WordPress needs to access your web server. Please enter your your ftp credentials to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1271,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yst_prominent_words":[],"class_list":["post-1269","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/1269"}],"collection":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/comments?post=1269"}],"version-history":[{"count":2,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/1269\/revisions"}],"predecessor-version":[{"id":1273,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/posts\/1269\/revisions\/1273"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/media\/1271"}],"wp:attachment":[{"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/media?parent=1269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/categories?post=1269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/tags?post=1269"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/cloudhost.com.ng\/blog\/wp-json\/wp\/v2\/yst_prominent_words?post=1269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}