WordPress file permissions on VPS

If you are runing wordpress on any VPS like DigitalOcean. Having site folder with incorrect set of permissions could show following message upon updating wordpress or plugin.

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

This issue can be resolve by running following command:

sudo chown -Rf www-data:www-data /var/www/wordpress

About the author

Danyal Ali Butt

I'm working as programmer since 2002. Born, grew up, studied and worked in Pakistan now Im located in Denmark since 2006.

View all posts