Symptoms
-
Plugin for WordPress can not be installed with the following error in Plesk interface:
An error occurred when installing the "wordpress-seo" plugin on the website with the ID 18: Could not install the wordpress-seo plugin on https://example.com website. Please check server logs or contact your server administrator.
-
The following error can be found in
%plesk_dir%adminlogsphp_error.log
:Installing the plugin..
Warning: Destination folder already exists. "C:/Inetpub/vhosts/example.com/wp-content/plugins/wordpress-seo/"
Plugin installation failed.
, stderr: No plugins installed.
{"err_code":true,"err_message":"No plugins installed."}
Cause
Folder with name required for plugin installation already exists
Resolution
-
Go to Domains > example.com > File Manager
-
Find
wp-content/plugins
directory -
Tick the plugin's directory (i.e.
wordpress-seo
) -
Click the Remove button
Note: Also, the directory might be renamed by clicking on the button and then Rename.
-
Install plugin once again