Title: Firewall wflogs folder path incorrect
Last modified: November 11, 2017

---

# Firewall wflogs folder path incorrect

 *  Resolved [Josh.biz](https://wordpress.org/support/users/joshbiz/)
 * (@joshbiz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/firewall-wflogs-folder-path-incorrect/)
 * After migrating a website to a new domain I can’t successfully activate the WordFence
   Firewall.
 * I get “We were unable to write to /home/xxxxxxx/public_html/wp-content/wflogs/
   which the WAF uses for storage. Please update permissions on the parent directory
   so the web server can write to it.”
 * I don’t think the problem is with the permissions though. The problem is that
   the path is incorrect and still referring to the old domain. Where I have included
   x’s in the path shown above, this is not correct for the new domain. But I can’t
   seem to change this.
 * I’ve tried reinstalling the plug-in (and using the ‘Delete Wordfence tables and
   data on deactivation?’ option) but it still keeps showing the wrong root folder
   name.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [wfyann](https://wordpress.org/support/users/wfyann/)
 * (@wfyann)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/firewall-wflogs-folder-path-incorrect/#post-9674245)
 * Hi [@joshbiz](https://wordpress.org/support/users/joshbiz/),
 * Could it be that you have the _“[WFWAF\_LOG\_PATH](https://docs.wordfence.com/en/Wordfence_constants_for_advanced_configuration#Web_Application_Firewall_.28WAF.29)“_
   variable set in _wordfence-waf.php_?
 * Or maybe it is caused by some caching mechanism. Have you checked with your hosting
   provider?
 *  Thread Starter [Josh.biz](https://wordpress.org/support/users/joshbiz/)
 * (@joshbiz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/firewall-wflogs-folder-path-incorrect/#post-9676862)
 * I’ve tried amending the paths in wordfence-waf.php to the correct ones but this
   makes no difference. I still keep getting:
 * We were unable to write to /home/ivanfish/public_html/wp-content/wflogs/ which
   the WAF uses for storage. Please update permissions on the parent directory so
   the web server can write to it.
 * The correct path is /home/ivanfisher/public_html/wp-content/wflogs/ (it seems
   to be using the path from the domain previously installed under).
 * Reinstalling the plug-in (even with the option “Delete Wordfence tables and data
   on deactivation” makes no difference either.
 * This incorrect path is coming from somewhere but not wordfence-waf.php.
 *  [wfyann](https://wordpress.org/support/users/wfyann/)
 * (@wfyann)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/firewall-wflogs-folder-path-incorrect/#post-9680994)
 * Hi [@joshbiz](https://wordpress.org/support/users/joshbiz/),
 * It’s possible that the code in _“.user.ini”_, _“.htaccess”_, and/or _“php.ini”_
   related to the firewall optimization still mentions the previous path.
 * Could you please check if that’s the case?
 *  Thread Starter [Josh.biz](https://wordpress.org/support/users/joshbiz/)
 * (@joshbiz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/firewall-wflogs-folder-path-incorrect/#post-9684237)
 * Thanks [@wfyann](https://wordpress.org/support/users/wfyann/) – resolved.
 * Yes, there was an auto_prepend_file entry still pointing to the old root address
   in user.ini, probably copied across from the old domain. As soon as this was 
   updated, the firewall activated immediately.
 * Many thanks for your help,
    Josh.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Firewall wflogs folder path incorrect’ 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

 * [firewall](https://wordpress.org/support/topic-tag/firewall/)
 * [folder path](https://wordpress.org/support/topic-tag/folder-path/)

 * 4 replies
 * 2 participants
 * Last reply from: [Josh.biz](https://wordpress.org/support/users/joshbiz/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/firewall-wflogs-folder-path-incorrect/#post-9684237)
 * Status: resolved