Why does WordPress ask for FTP credentials when I update a plugin?

Was this question useful?Community ranking

Answers

1 answer

WordPress is asking because it can’t safely write to your site files directly from the web server. The usual cause is that the PHP/web-server user and the WordPress file owner don’t match, so WordPress switches to FTP or SSH instead of risking the wrong file ownership. I’d check Site Health, then ask your host to confirm the WordPress files’ ownership and permissions for the PHP user. Don’t just force `FS_METHOD` to `direct` or hardcode credentials as a blanket fix; that can hide the real hosting setup issue. If this started after a migration or host change, mention that to support too.

Was this answer helpful?Community ranking

Your answer

Sign in to answer.

Keep exploring

Similar questions

Browse all