🖥️ Plugin install asks for FTP details in WordPress

April 4, 2020 (4y ago)

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 /var/www/wordpress/

Open terminal and enter:


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

Open terminal and enter:


chmod 755 -R /var/www/wordpress/

Now, your WordPress is ready to install plugins!