Site icon Hip-Hop Website Design and Development

WP asking for ftp credentials when deleting plugin

WordPress asks me for FTP credentials when I attempt to delete or set up plugins. I do know it has to do with permissions however I’ve been unable to determine it out. I’ve a linux system consumer XYZ and apache2 run as www-data. This works:

sudo chown www-data:www-data -R /path/to/wordpress
sudo chmod 700 -R /path/to/wordpress

Nevertheless it’s unsafe. My initially deliberate configuration was:

sudo chown XYZ:www-data -R /path/to/wordpress
sudo chmmod 750 -R /path/to/wordpress
sudo chmod 770 -R /path/to/wordpress/wp-content

Based on the wordpress docs, wp-content is the one folder which the webserver ought to have write-access to. It contains the plugins and themes folders.

Nevertheless it does not work. I’ve spent a number of hours researching on-line however nothing has helped to this point and I do not know what to strive anymore. What are the correct permissions to permit automated updates and plugin set up, with out giving the webserver write-access to all the pieces?

For no matter motive, the next doesn’t work:

sudo chown XYZ:www-data -R /path/to/wordpress
sudo chmod 770 -R /path/to/wordpress

I assumed it to be similar to the primary variant above, giving www-data write-access to all the pieces. How is that this attainable??