njsent
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress and PHP 7 issues on WindowsI am having the same problem. Did you ever get a fix ?
I am using PHP 5.6.20
I see in the Core section about 9 lines down.
auto_prepend_file and it points to the individual sites (i.e.
c:\intepub\wwwroot\site\wordfence-waf.php )Use the phpinfo() statement in a page, to display the php settings for the site.
You need to make sure that each site is using the correct wordfence-waf.php file. Mine were all using the same file until I put the path statements into the php.iniCorrect, I had to add the path statement at the end of my php.ini for each website on the server.
This is the only way I could get the correct wordfence-waf.php file be processed for each website.
I am running server 2012r2 and IIS.This process is described in
https://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/enable-per-site-php-configuration-on-iis-60-and-iis-7-and-aboveThanks I got it to work with the path statement.
For any one else who has multiple sites on IIS.
Add the following lines to the END of the php.ini file[PATH=C:/inetpub/wwwroot/wp_xxxx/]
auto_prepend_file = ‘C:\inetpub\wwwroot\wp_xxxx/wordfence-waf.php’as described in:
https://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/enable-per-site-php-configuration-on-iis-60-and-iis-7-and-above