• Resolved KoolKatDesign

    (@koolkatdesign)


    I was not able to complete the optimization setup process within the WP dashboard so I followed the manual configuration instructions provided. However, a PHP variables icon is not visible in my Cpanel. My hosting support told me to use the file manager to edit the php.ini file and insert the code provided in your documentation: auto_prepend_file = ‘/home1/amwsorg/public_html/wordfence-waf.php’

    I did this and it is showing up in my php info now but the optimization warning is still appearing in the WP dashboard. Hosting confirmed that we only have 1 website in our single hosting account so that is not causing this issue.

    Please advise on what I did wrong or why the optimization warning is still appearing in WP?

    Thanks.

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support wfscott

    (@wfscott)

    @koolkatdesign

    Thanks for writing in and sorry for the delay.

    Which hosting provider are you with? Is it SiteGround?

    Thanks,
    Scott

    Thread Starter KoolKatDesign

    (@koolkatdesign)

    HostMonster

    Plugin Support wfscott

    (@wfscott)

    @koolkatdesign

    Can you please send me over diagnostics to wftest @ wordfence dot com via Wordfence > Tools > Diagnostics > Send Report by Mail — please put your username in the second field there and let me know here when they are sent.

    Thanks,

    Scott

    Thread Starter KoolKatDesign

    (@koolkatdesign)

    just sent it as requested

    Plugin Support wfscott

    (@wfscott)

    I haven’t seent that email come over. Can you confirm — [email protected]

    Thread Starter KoolKatDesign

    (@koolkatdesign)

    I sent it 2 or 3 times following your instructions. Did you get it yet?

    Plugin Support wfscott

    (@wfscott)

    Sorry, @koolkatdesign, I have not. Try sending them to your own email address and let me know if you receive them there.

    Is the site set up in the root/public_html, htdocs, or is it in a sub folder?

    Thanks,
    Scott

    Thread Starter KoolKatDesign

    (@koolkatdesign)

    @wfscott I just did and it came through to my email immediately and without issue. I just forwarded it directly from my email inbox to [email protected]

    Did it come through this way? Could it be getting caught in your spam folder?

    This is the path (/home1/amwsorg/public_html/php.ini) to the php.ini file that I updated with this code at the end: auto_prepend_file = ‘/home1/amwsorg/public_html/wordfence-waf.php’

    I just confirmed that the wordfence-waf.php file is also in the correct directory.

    This link confirms that the auto_prepend_file variable is configured correctly: https://www.amws.org/info.php

    • This reply was modified 4 years, 11 months ago by KoolKatDesign.
    • This reply was modified 4 years, 11 months ago by KoolKatDesign.
    • This reply was modified 4 years, 11 months ago by KoolKatDesign.
    • This reply was modified 4 years, 11 months ago by KoolKatDesign.
    Plugin Support wfscott

    (@wfscott)

    @koolkatdesign

    Thanks for the update. Are you putting koolkatdesign in the second field after the email? We have many diagnostics in our email so I am primarily looking for that. Is it another name there by chance?

    Check your system configuration (at the bottom of your diagnostics page there is a link to view your configuration in a new window) and look to see if auto_prepend_file has a local value. If it does not, the setting in the php.ini is not being used and would be the issue.

    Scott

    Thread Starter KoolKatDesign

    (@koolkatdesign)

    @wfscott

    I used the Ticket Number/Forum Username: @koolkatdesign and koolkatdesign in all diagnostic emails sent to you [email protected]. I also emailed you from [email protected] on 12/5 at 6:15pm.

    As per my note above clicking here https://www.amws.org/info.php confirms that auto_prepend_file has a local value. This is how my hosting company’s support tech confirmed that it is being used and not an issue on their side.

    Plugin Support wfscott

    (@wfscott)

    We see auto_prepend_file appears to be set correctly in that phpinfo file — if it doesn’t show that the WAF is optimized when you view the Firewall page in Wordfence’s dashboard, the auto_prepend might not be applied to subdirectories.

    One thing to try is setting the PHPRC in the .htaccess file in public_html, like so:

    SetEnv PHPRC /home1/amwsorg/public_html/php.ini

    Thanks,
    Scott

    Thread Starter KoolKatDesign

    (@koolkatdesign)

    I just added that code at the end of the .htaccess file in public_html and saved then went back to Wordfence’s dashboard and refreshed but the WAF is still showing as not optimized? Do I just abandon this issue by clicking dismiss? Or is it worth the time to pursue?

    Plugin Support wfscott

    (@wfscott)

    @koolkatdesign

    A colleague of mine suggested changing the php.ini file name to .user.ini. That is the one in public_html.

    Please let me know if the firewall shows 100% after that.

    Also, it is recommended to remove the PHP Info file that you created from the site whenever you’re able.

    Scott

    Hey @koolkatdesign,

    We haven’t heard back from you in a while, so I’ve gone ahead and marked this thread as resolved.

    Please feel free to open another thread if you’re still having issues with Wordfence.

    Thanks,

    Gerroald

    Thread Starter KoolKatDesign

    (@koolkatdesign)

    @wfgerald None of the suggestions worked so I just hit the dismiss button and had to move on.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Optimizing Firewall Issue’ is closed to new replies.