• Resolved seoservicesbristollimited

    (@seoservicesbristollimited)


    Hi there. I’ve read the similar forum topics, also Optimizing The Firewall page, and Firewall Optimization Troubleshooting page, and tried to follow each step.

    1. In my Siteground multi-sites hosting, I created a php.ini file into the /public_html. The php.ini content says :

    auto_prepend_file = “/home/MYUSERNAME/public_html/MYWEBSITEDOMAINNAME/wordfence-waf.php”
    zend_extension=/usr/local/php56/lib/php/extensions/ioncube.so
    zend_extension=/usr/local/php56/lib/php/extensions/ZendGuardLoader.so

    2. the file wordfence-waf.php was added manually to MYWEBSITEDOMAINNAME/wordfence-waf.php

    3. In the .htaccess file – for MYWEBSITEDOMAINNAME – I have added those lines :

    SetEnv PHPRC /home/MYUSERNAME/public_html/MYWEBSITEDOMAINNAME/php.ini
    <Files ~ “\.(ini)$”>
    order allow,deny
    deny from all
    </Files>

    4. In WordPress CMS / Wordfence / Tools / Diagnostics / “Click to view your system’s configuration in a new window” , the auto_prepend_file returns a “no value”, such as the user_ini.filename = “no value”.

    I hope this gives you enough details to be able to guide me on how to move from Wordfence “Firewall Basic WordPress Protection” enabled towards “Optimized”.

    Thanks,

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @seoservicesbristollimited

    Can you edit your php.ini file and add this line:

    auto_globals_jit = off

    You can also do this by going into cPanel -> PHP Variables.

    Please give this a try and let me know if it helps.

    Thanks,

    Gerroald

    Thread Starter seoservicesbristollimited

    (@seoservicesbristollimited)

    Hi Gerald and many thanks for the support

    My php.ini file now content is :

    auto_prepend_file = “/home/MYUSERNAME/public_html/MYWEBSITEDOMAINNAME/wordfence-waf.php”
    auto_globals_jit = off
    zend_extension=/usr/local/php56/lib/php/extensions/ioncube.so
    zend_extension=/usr/local/php56/lib/php/extensions/ZendGuardLoader.so

    After the change, in WordPress CMS / Wordfence / Firewall / The “Protection Level” still shows as “Basic WordPress Protection” – I don’t know if there is a delay… will let you know if this improves by itself in the next hours…

    Thread Starter seoservicesbristollimited

    (@seoservicesbristollimited)

    Will mark this as resolved, as has been after raising a ticked with Siteground, and so with the help of their technical support team.

    The solution, for a Siteground Multi-Sites account ; what you need to do is :

    1. Into /public_html

    • have a (1st) “php.ini”
    • have 2 x SetEnv PHPRC in the “.htaccess” file
    • SetEnv PHPRC /home/MyUserName/public_html/php.ini
      SetEnv PHPRC /home/MyUserName/public_html/My DomainName/php.ini

    2. Into your website folder public_html/MyDomainName

    • have a (2nd) “php.ini”
    • have 1 x SetEnv PHPRC in the “.htaccess” file
    • SetEnv PHPRC /home/MyUserName/public_html/My DomainName/php.ini

    • heve the “wordfence-waf.php”

    Hope this will help, cheers

    Into /public_html

    have a (1st) “php.ini”
    have 2 x SetEnv PHPRC in the “.htaccess” file
    SetEnv PHPRC /home/MyUserName/public_html/php.ini
    SetEnv PHPRC /home/MyUserName/public_html/My DomainName/php.ini

    2. Into your website folder public_html/MyDomainName

    have a (2nd) “php.ini”
    have 1 x SetEnv PHPRC in the “.htaccess” file
    SetEnv PHPRC /home/MyUserName/public_html/My DomainName/php.ini

    heve the “wordfence-waf.php”
    Hope this will help, cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Firewall Optimization with Siteground’ is closed to new replies.