FTP Credentials Unexpectedly Required When Installing Plugins or Upgrading in Wordpress

I went to install a plugin on a newly created Wordpress site and rather than just do it, suddenly a screen appeared asking for FTP credentials. I had never seen this before and was a little surprised. Why would it be so different?

The problem? I had forgotten to change the ownership of the folder in which the Wordpress site sat. Being still owned by root, it no longer had permission to make changes.

The solution? A quick:

chown -R www-data:www-data folder-name

as root.


Hi! Did you find this useful or interesting? I have an email list coming soon, but in the meantime, if you ready anything you fancy chatting about, I would love to hear from you. You can contact me here or at stephen ‘at’ logicalmoon.com