Title: Installation with WP CLI
Last modified: February 21, 2021

---

# Installation with WP CLI

 *  Resolved [mgarrtner](https://wordpress.org/support/users/mgarrtner/)
 * (@mgarrtner)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/installation-with-wp-cli/)
 * Hi,
 * I got that message within installation with wp-cli
 *     ```
       sudo -u $WP_OSUSER -i -- wp plugin install wordfence --activate --path=$WP_INSTALLDIR
       Installing Wordfence Security – Firewall & Malware Scan (7.4.14)
       Herunterladen des Installationspakets von https://downloads.wordpress.org/plugin/wordfence.7.4.14.zip …
       Entpacken des Pakets …
       Das Plugin wird installiert …
       Das Plugin wurde erfolgreich installiert.
       Activating 'wordfence'...
       PHP Warning:  fopen(/home/macht-der-vielen/public_html/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 325
       Warning: fopen(/home/macht-der-vielen/public_html/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 325
       PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 326
       Warning: flock() expects parameter 1 to be resource, bool given in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 326
       PHP Warning:  include(/home/macht-der-vielen/public_html/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 328
       Warning: include(/home/macht-der-vielen/public_html/wp-content/wflogs/rules.php): failed to open stream: No such file or directory in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 328
       PHP Warning:  include(): Failed opening '/home/macht-der-vielen/public_html/wp-content/wflogs/rules.php' for inclusion (include_path='.:/usr/share/php') in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 328
       Warning: include(): Failed opening '/home/macht-der-vielen/public_html/wp-content/wflogs/rules.php' for inclusion (include_path='.:/usr/share/php') in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 328
       PHP Warning:  flock() expects parameter 1 to be resource, bool given in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 329
       Warning: flock() expects parameter 1 to be resource, bool given in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 329
       PHP Warning:  fclose() expects parameter 1 to be resource, bool given in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 330
       Warning: fclose() expects parameter 1 to be resource, bool given in /home/macht-der-vielen/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 330
       Plugin 'wordfence' activated.
       Success: Installed 1 of 1 plugins.
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/installation-with-wp-cli/#post-14084307)
 * Hi [@mgarrtner](https://wordpress.org/support/users/mgarrtner/),
 * This appears to be similar to a WP Engine issue I’ve seen before where they don’t
   allow the use of the file based storage engine for the firewall configuration
   data. Whether or not you’re using WP Engine I would imagine you need to follow
   the same steps to switch to the MySQLi storage engine as outlined below:
 * [https://www.wordfence.com/help/firewall/mysqli-storage-engine/](https://www.wordfence.com/help/firewall/mysqli-storage-engine/)
 * More details here:
 * [https://www.wordfence.com/blog/2019/08/wordfence-now-works-on-wp-engine-and-with-load-balancers/](https://www.wordfence.com/blog/2019/08/wordfence-now-works-on-wp-engine-and-with-load-balancers/)
 * Thanks,
 * Peter.

Viewing 1 replies (of 1 total)

The topic ‘Installation with WP CLI’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/installation-with-wp-cli/#post-14084307)
 * Status: resolved