Issue
How to activate AccelerateWP via CLI?
Environment
- CloudLinux Shared Pro
- cPanel
- Plesk
- AccelerateWP
Solution
Scan the all server domains in background mode, deploys the plugin and force activation of AccelerateWP on those WordPress sites where it is possible:
cloudlinux-awp-admin enable-feature --all
Check activation status:
cloudlinux-awp-admin enable-feature --status
To just enable AccelerateWP for all users and let the site owner manually install plugin
cloudlinux-awp-admin set-suite --suites accelerate_wp --users all --allowed-for-all
In case you like to enable AccelerateWP premium features for all users:
cloudlinux-awp-admin set-suite --suites accelerate_wp,accelerate_wp_premium --users all --allowed-for-all
To enable AccelerateWP for a particular user:
cloudlinux-awp-admin set-suite --suites=accelerate_wp,accelerate_wp_premium --allowed --users=<username>
To enable premium AccelerateWP Redis object cache feature, without SmartAdvice, via the shell command (on behalf of an end-user):
Login as the user and run the utility under that user:
# su - exampleuser
$ cloudlinux-awp-user enable --domain "<domain_name>" --wp-path "<relative_to_docroot_path_to_wordpress_installation>" --feature=object_cache
Note: 'accelerate_wp_premium' option has to be activated already for a particular user
To enable AccelerateWP plugin:
cloudlinux-awp-user enable --domain "<domain_name>" --wp-path "<relative_to_docroot_path_to_wordpress_installation>" --feature=accelerate_wp
To enable both AccelerateWP and Object cache, run:
cloudlinux-awp-user enable --domain "<domain_name>" --wp-path "<relative_to_docroot_path_to_wordpress_installation>" --feature=accelerate_wp,object_cache
Note: Commands above are run under a particular user
To disable AccelerateWP for particular users, use this article:
https://docs.cloudlinux.com/shared-pro/accelerate-wp/#disable-acceleratewp-for-a-particular-user
Useful links
- AccelerateWP suite limitations
- https://user-docs.cloudlinux.com/wpos-plugin/#what-does-acceleratewp-is-advice-driven-mean
- https://docs.cloudlinux.com/cloudlinux-os-plus/#administrator-interface
- https://user-docs.cloudlinux.com/wpos-plugin/#acceleratewp-premium-object-caching-feature
- https://docs.cloudlinux.com/shared-pro/accelerate-wp/#disable-acceleratewp-for-a-particular-user
Comments
0 comments
Please sign in to leave a comment.