WordPress shows 500 Internal Server Error: open_basedir restriction in effect

Created:

2016-12-12 03:43:52 UTC

Modified:

2017-08-08 13:44:42 UTC

0

Was this article helpful?


Have more questions?

Submit a request

WordPress shows 500 Internal Server Error: open_basedir restriction in effect

Applicable to:

  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

  1. Website on WordPress is unavailable:

    500 Internal server error
  2. Accessing this website from the server returns the following error message:

    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/Avada/framework/plugins/tf-flexslider/lang/wooslider-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
    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/Avada/framework/plugins/tf-flexslider/lang/wooslider-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

Cause

Because of inconsistency absolute path to the WordPress theme localization .mo file is concatenated with the path to the plugin directory and, as result, restricted by open_basedir PHP parameter.

Resolution

  1. Go to Plesk > Domain > example.com > PHP Settings and set open_basedir as None .
  2. Switch it back to previous value, as default it is {WEBSPACEROOT}{/}{:}{TMP}{/}
Have more questions? Submit a request
Please sign in to leave a comment.