[Solved] WordPress asking for FTP Credentials when installing Plugins or uploading to Blog

wordpress ask ftp connection CloudHost

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 “To perform the requested action WordPress needs to access your web server. Please enter your your ftp credentials to proceed”

wordpress asking for ftp for plugin installation CloudHost

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.

What is the issue that causes WordPress asking for FTP Credentials when installing Plugins or uploading to Blog ?

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.

In my case most of the files in WordPress directory were owned by the root user.

So I run below command on my VPS where i have my WordPress installed

chown -R myuser:myuser public_html/*

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/myuser/public_html)

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.

If you have another way to clear this error/have questions, please share in the comment section

Leave a Reply

Your email address will not be published.

(Required)

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com