open_basedir issue on IIS 8
-
When using the latest version of iThemes Security on a Windows 2012 R2 server with IIS8, everything works great as long as I leave the php.ini open_basedir setting commented out.
Obviously, that’s no good for security. It needs to be on. But when it’s on, and when iThemes is activated, here’s the error I get:
PHP Warning: is_readable(): open_basedir restriction in effect. File(M:\inetpub\wwwroot\sites\superduper\production/wp-content/plugins/M:\inetpub\wwwroot\sites\superduper\production\wp-content\plugins\better-wp-security/lang/it-l10n-better-wp-security-en_US.mo) is not within the allowed path(s): (M:\inetpub\wwwroot\sites\;C:\Program Files\PHP\;C:\windows\temp;) in M:\inetpub\wwwroot\sites\superduper\production\wp-includes\l10n.php on line 476As you can see, this plugin is obviously screwing things up by incorrectly concatenating values for the locations of items. It is probably expecting relative values from a Linux environment and hasn’t been coded correctly to be adaptable to other environments.
I tried figuring out how the values are set in the plugin in order to manually fix it, but it’s beyond my skill level.
How can I fix this?
The topic ‘open_basedir issue on IIS 8’ is closed to new replies.