Hi @patboran
The optimization wizard won’t work on SiteGround because they disallow the use of a .user.ini file and a php.ini file must be used instead. This requires a manual setup.
Each site must have a wordfence-waf.php file present in the directory where WordPress is installed. This is the same directory where the WordPress wp-config.php configuration file exists. The wordfence-waf.php file is generated automatically when you run through the firewall optimization wizard, even though it fails to complete. Based on your description you should have a wordfence-waf.php file present in the WordPress file system on both websites.
Each site must have a php.ini file present in the directory where WordPress is installed. This is the same directory where the WordPress wp-config.php configuration file exists.
Each site must have a line of code added to the .htaccess file present in the directory where WordPress is installed. This is the same directory where the WordPress wp-config.php configuration file exists. This line of code tells the web server to use the correct php.ini file for that site as you have two php.ini files present in the hosting account.
For each site find the correct server file path. Expand the WordPress Settings section on the Wordfence Tools >> Diagnostics page. Look for the line ABSPATH, an example is below:
/home/xxxxx/public_html/
NOTE: The file path will be different for each site!!!
Don’t continue unless a wordfence-waf.php file is present in the directory where WordPress is installed for both sites.
For each site create or edit the php.ini and add this code below. NOTE: You must have the correct file path to the wordfence-waf.php file in the code below for each site that you found earlier!!!:
; Wordfence WAF
auto_prepend_file = '/home/xxxxx/public_html/wordfence-waf.php'
; END Wordfence WAF
Now, For each site edit the .htaccess file and add this line of code below. NOTE: You must have the correct file path to the correct php.ini file in the code below for each site that you found earlier!!!:
SetEnv PHPRC /home/xxxxx/public_html/php.ini
Once that is complete you can send a diagnostics report for both websites and I can check that you have done this properly. Please go to the top of the “Diagnostics” tab on the Wordfence “Tools” page. There will be a “SEND REPORT BY EMAIL” button to send the diagnostics report. Enter wftest [at] wordfence [dot] com as the email and @patboran as the forum username please.
Once you have emailed me the diagnostics reports can you reply here to let me know that they have been sent. This is important in the unlikely event that your installations of WordPress are having an issue with sending mail.