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

Author: Danyal
I'm skilled programmer with expertise in Vue.js/Nux.js for front-end development and PHP Laravel for back-end development. I excel in building APIs and services, and also have experience in web server setup & maintenance. My versatile skill set allows you to develop and maintain web applications effectively, from the user interface to the server-side functionality. I love coding with never ending learning attitude, thanks for visiting danya.dk