We can check the WordPress install or delete or update the plugin without FTP.
Add the following code in a wp-config.php file and refresh the website then you can install the WordPress plugin without FTP. wp-config.php file situated in the WordPress root folder.
1
define('FS_METHOD','direct');
Give 755 permission to the wp-content folder. You can change permission to 777 if 755 not working.
How to change folder permission in mac or Linux for WordPress?
To set to all subfolders (recursively) use -R
1
2
sudo chmod755/wp-content-R
How to Change Folder Permission by Cpanel
Go to Cpanle > file manager > right click > folder permission. Permission 755.
Granting write permissions to the www-data
We will get the following error, “wordpress installation failed: could not create directory.”, if wp-content permission is not correct.
Try the following commands if you can’t still install the plugin without FTP.