After setting up WordPress on your server (local or remote) and while trying to install a plugin, sometimes WordPress asks you to enter FTP details.
Generally, we don’t want it. So what is the problem and how to solve this?
Most of the time the issue is with the ownership of the folder you are working in. Let’s say you have your WordPress folder in
Now, go to the Terminal and type
sudo chown www-data:www-data -R /var/www/wordpress/
This will give ownership to your username.
Next, make sure you have given the permission to the folder as
chmod 755 -R /var/www/wordpress/
Now, your WordPress is ready to install plugins!