Unable to install plugins from wp-cli

Hi I am using a Ubuntu system. I am using a shell script to download wordpress from wget, update config and run it from nginx server.

Now I want to update this shell script so that when we install a fresh copy of WordPress, I get some plugins pre-installed.
So I installed wp-cli and ran the command

wp plugin install w3-total-cache --activate --allow-root

This command says the plugin has been activated successfully. But when I go to the site URL in the plugins section, it gives the following error

The plugin w3-total-cache/w3-total-cache.php has been deactivated due to an error: Plugin file does not exist.

This is true for any plugin that I try to install.

When I go to the plugins folder inside wp-content, I can see that plugin files exist. But still I get the error.

How to resolve this. Please help

2 Answers
2

Caching plugins usually require some additional manual work in moving some files from the plugin directory to the root of the wp-content directory and maybe some wp-config.php changes. It is possible that the plugin fails to initialize due to that.

Leave a Comment