• Resolved casket21

    (@casket21)


    Hi
    Every time I push my staging site to live (with Siteground) I have an issue with wordfence and the extended protection. Before the latest push I was advised by Siteground to deactivate the wordfence plugin before pushing it live, and then re-activating which I did but then the firewall extension is not working. When I go in to set it up manually the auto prepend file is pointing to the staging site. When I go through the manual configuration it says to add the live site autoprepend file which I have done rather than the staging site but it is still not working. I have had a chat with Siteground who tell me it is set up correctly in php.ini but it is not working on the site. Why is there an issue every time and is there a way to firatly correct it and secondly stop it happening every time please? All help is much appreciated.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter casket21

    (@casket21)

    I have now done this with the help of Siteground – they have changed .htaccess files so it should work but the firewall is now showing only 20%.
    The firewall is activated and extended protection is enabled but the WAF is 0% – I can’t see what I need to change to make it higher – the staging site is 55%.

    • This reply was modified 2 years, 11 months ago by casket21.

    @casket21,

    Can you share the change (i.e., general code) that SiteGround added to your .htaccess file? I also use SiteGround (and Wordfence) but it’s hit or miss when I create a Staging Site via SiteGround’s Site Tools.

    Thank you!

    • This reply was modified 2 years, 11 months ago by Generosus.
    Thread Starter casket21

    (@casket21)

    Hi generosus

    Siteground did it for me but they also told me for future reference this is what I should do:-

    Go to your Site Tools – ; Site – ; File manager
    : In there, find the php.ini, right click – ; Edit
    : in there, change auto_prepend_file = /home/customer/www/staging1.name.com/public_html/wordfence-waf.php to auto_prepend_file = /home/customer/www/name.com/public_html/wordfence-waf.php

    then , right click – ; Edit the .htaccess file and change SetEnv PHPRC /home/customer/www/staging1.name.com/public_html/php.ini to SetEnv PHPRC /home/customer/www/name.com/public_html/php.ini`

    i.e. just removing the staging1 but from both files.

    Once that was done, although the extended protection was on it only showed 20% firewall protection on wordfence. I just deactivated and reactivated the plugin and it changed to 64% so I’m happy for now.
    Sorry – I’m not sure how to stop this happening in the future – but at least there’s a fix.
    Hope it works for you too – if not some of the Siteground staff are really helpful ??

    Hi @casket21,

    Much appreciated. Yes, their staff is awesome.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issues with pushing staging site to live’ is closed to new replies.