- Plesk for Windows
Website on WordPress is unavailable:
PLESK_INFO: 500 Internal server error
Accessing this website from the server returns the following error message:
PLESK_INFO: PHP Warning: is_readable(): open_basedir restriction in effect. File(C:\inetpub\vhosts\example.com\httpdocs/wp-content/plugins/C:/inetpub/vhosts/example.com/httpdocs/wp-content/themes/sometheme/plugins/tf-flexslider/lang/en_US.mo) is not within the allowed path(s): (C:/inetpub/vhosts//example.com\;C:\Windows\Temp\) in C:\inetpub\vhosts\example.com\httpdocs\wp-includes\l10n.php on line 457
The website may be accessible but an attempt to install a plugin at Plesk > WordPress > example.com > Plugins fails with the same error above.
The absolute path to the WordPress theme localization
.mo file is concatenated with the path to the plugin directory and, as a result, restricted by
open_basedir PHP parameter.
Note: the resolution contains a common suggestion on addressing such issues. The case may be different for different themes and plugins. For the exact specific solution, refer to plugin support page or contact plugin developers.
Access file manager in Domains > example.com > File Manager.
Edit the file, mentioned in the error, e.g.
WP_PLUGIN_DIRand replace it with
basename( dirname( __FILE__ ) ).
For example, replace:
CONFIG_TEXT: $path = . '/' . trim( $plugin\rel_path, '/' );
CONFIG_TEXT: $path = basename( dirname( __FILE__ ) );