• Resolved johnibom

    (@johnibom)


    **Please HELP ASAP***

    Hello,

    The extended protection is not getting enabled no matter how many times I have tried.
    Server Info:
    PHP Version 5.6.33-0+deb8u1
    Server API Apache 2.0 Handler

    When I open System Configuration from Diagnostic page I see:

    auto_prepend_file no value no value

    I have also tried to create .user.ini without any success..

    I have also tried to use auto_prepend code in my vhost conf without any luck..

    The only place i did not try is the /etc/php5/apache2/conf.d folder..

    htaccess has the following contents:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # Wordfence WAF
    <IfModule mod_php5.c>
    php_value auto_prepend_file ‘/var/www/XXXXXXXX/public_html/wordfence-waf.php’
    </IfModule>
    <Files “.user.ini”>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>

    # END Wordfence WAF

    Please help as soon as possible,

    Thanks
    Mohsin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Mohsin (@johnibom),

    It could be that your custom settings are being overridden by other settings implemented by your hosting provider.

    Have you checked with them?

    Also can you please confirm which hosting provider you’re using?

    Thread Starter johnibom

    (@johnibom)

    Hi,

    Don’t you think that defining php_value in .htaccess should have more precedence over global ini or other mods inis?
    Anyways, I am using OVH VPS.

    Thanks

    Hi @johnibom,

    If your host has a php.ini file that loads after yours (or after the file containing your custom settings), it could set “auto_prepend_file” to a different (in this case, blank) value.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extended Protection auto_prepend not working’ is closed to new replies.