• Resolved Merkucio

    (@merkucio)


    Hello,

    Have a problem with configuration process complete on Hetzner.

    Manual configuration shows auto_prepend_file = ‘/usr/www/users/xxxxxx/wordfence-waf.php’ for php.ini, but there is no possibility to edit php.ini file on Hetzner.

    So, I sent the email report with forum username.

    Thx.

    • This topic was modified 2 years, 8 months ago by Merkucio.

    The page I need help with: [log in to see the link]

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

    (@wfphil)

    Hi @merkucio

    Can you ask Hetzner to set a value of .user.ini for the PHP directive user_ini.filename and then run through the optimization wizard again which should then optimize the firewall fully and automatically without any manual code edits.

    Thread Starter Merkucio

    (@merkucio)

    Hi @wfphil

    Hetzner support gave us the solution:

    It should work by adding the following lines to your .htaccess:
    %<-------------%<-------------%<-------------%<-------------%<
    php_value include_path ".:/usr/www/users/xxxxxx"
    php_value auto_prepend_file "wordfence-waf.php"
    %<-------------%<-------------%<-------------%<-------------%<

    And it works.

    Thanks.

    Thread Starter Merkucio

    (@merkucio)

    RESOLVED.

    Plugin Support wfphil

    (@wfphil)

    Hi @merkucio

    Thank you for the update.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hetzner – auto_prepend_file’ is closed to new replies.