WordPress website in Plesk shows 500 Internal Server Error on Windows: open_basedir restriction in effect: .mo is not within the allowed path(s)

Follow

Comments

5 comments

  • Avatar
    Joseph Anand
    I have the same error in stylemixtheme activate. I tried as your resolution but unable to fix this issue. Could you tell me how to solve the issue?

    The error as

    PHP Warning: is_readable(): open_basedir restriction in effect. File(G:\PleskVhosts\globalmastersdoc.com\httpdocs\TaseesDemo/wp-content/plugins/G:/PleskVhosts/globalmastersdoc.com/httpdocs/TaseesDemo/wp-content/themes/consulting/admin/includes/envato-market/languages/envato-market-en_US.mo) is not within the allowed path(s): (G:/PleskVhosts//globalmastersdoc.com\;C:\Windows\Temp\) in G:\PleskVhosts\globalmastersdoc.com\httpdocs\TaseesDemo\wp-includes\l10n.php on line 584
    0
    Comment actions Permalink
  • Avatar
    Joseph Anand

    Solved. First I have changed only open_basedir in Domain > example.com > PHP Settings. Now I I have Changed the open_basedir parameter in my .user.php also like  open_basedir="none"

     

    Now it is working fine

    1
    Comment actions Permalink
  • Avatar
    Denis Bykov

    @Joseph Anand
    Thank you for the feedback. I added notice about '
    .user.ini' file to the article.

    0
    Comment actions Permalink
  • Avatar
    Unknown User

    Thanks Joseph Anand! Its working!!

    0
    Comment actions Permalink
  • Avatar
    Marilynne Botha

    Hi, so I am having the same issue:

    [22-Jul-2022 06:51:08 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(C:\inetpub\vhosts\.../wp-admin/admin.php) is not within the allowed path(s): (C:/Inetpub/vhosts/...;C:\windows\Temp\) in C:\inetpub\vhosts\...\httpdocs\wp-admin\menu-header.php on line 257

    I have done quite a few Wordpress sites, but this is the first time I have had this problem on any of them, but it is also the first client using plesk.

    What exactly am I supposed to do?

    I went to menu-header.php on line 257:

    && file_exists( WP_PLUGIN_DIR . "/$sub_file" )

    I am not exactly sure what I need to change. Please advise on what I need to change?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request