• Resolved whimsupport

    (@whimsupport)


    For my website I also have a development and staging environment. I make frequent copies between these environments, and when I copy them it also copies the wordfence-waf.php file, which contains the path for the wflogs folder. This causes the Firewall to go down on the environments I’ve copied to as the path is directed to the site I copied from. To fix this I have to manually go into the file and correct the path.

    I’ve seen other mentions of fixing path issues by updating the auto_prepend_file variable in the .htaccess file, but because my site is hosted on WPEngine, the use of the file was deprecated as of PHP 7.4.

    Is there a way to avoid manually updating that file every time I copy to an environment?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @whimsupport and thanks for reaching out to us!

    Are all the sites hosted with WPEngine?

    Can you send a diagnostic report from your prod site to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    Thanks!

    Thread Starter whimsupport

    (@whimsupport)

    I just sent the report from my production environment.

    All the sites are hosted on WPEngine on the same account, I use their Copy Environment function to copy between them.

    Also, the Firewall is currently operational in all environments as I have manually updated the path variable in each. I’m wondering how to best go about copying between sites in the future.

    Plugin Support WFAdam

    (@wfadam)

    The best thing to do is to disable the optimization for the firewall before transferring the site. That will allow the file paths to update automatically instead of locking their values.

    https://www.wordfence.com/help/advanced/remove-or-reset/#migrate-with-wordfence is our guide reference on migrating a site.

    Let me know if you need anything else!

    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Copying environment disables firewall and creates path errors’ is closed to new replies.