• Resolved smeedijzeronline

    (@smeedijzeronline)


    Hi,

    I use Bedrock which uses a different directory structure for a WordPress installation:

    ├── composer.json
    ├── config
    │   ├── application.php
    │   └── environments
    │       ├── development.php
    │       ├── staging.php
    │       └── production.php
    ├── vendor
    └── web -> [ want wordfence-waf.php here (public folder) ]
        ├── app
        │   ├── mu-plugins
        │   ├── plugins
        │   ├── themes
        │   └── uploads
        ├── wp-config.php
        ├── index.php
        └── wp -> [ wordfence-waf.php gets here ]

    With Bedrock WordPress is installed with composer. When I do composer update the wp folder with wordfence-waf.php gets removed. So can I configure a default path for wordfence-waf.php?

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

    (@wfadam)

    Hello @smeedijzeronline and thanks for reaching out to us!

    You can move the wordfence-waf.php file to another directory of your choosing in WordPress, as long as Composer doesn’t delete the file from the new location.

    You will need to update the wordfence-waf.php file path value for the auto_prepend_file PHP directive. Depending on your server environment that will be set in either php.ini, .user.ini or .htaccess

    Let me know if this helps or if you have any questions!

    Thanks!

    Thread Starter smeedijzeronline

    (@smeedijzeronline)

    Thank you, but there’s no way to set a preferred path for the wordfence-waf.php? So it automatically places the needed files with correct path’s on new installations.

    Plugin Support WFAdam

    (@wfadam)

    There really isn’t an easier way to do it.

    Every time you create a new instance you would have to move wordfence-waf.php to the web directory.

    Sorry and thanks!

    Thread Starter smeedijzeronline

    (@smeedijzeronline)

    Thanks for your reply!

    Maybe it’s something to add to the roadmap ?? I think define("WFWAF_FILE_PATH", '/var/www/html/') could help others too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set default path for wordfence-waf.php?’ is closed to new replies.