On October 19, 2021, we have enabled single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
If you had already registered your account at MyPlesk.com/Plesk360/Platform360 please use one for login. Otherwise please re-register it using the same email address as your existing Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account.

A website hosted in Plesk is not accessible: open_basedir restriction in effect

Follow

Comments

9 comments

  • Avatar
    Kingsley Felix

    Does not seem to work

    1
    Comment actions Permalink
  • Avatar
    Bulat Tsydenov

    @Kingsley Felix
    Hi,
    What error do you have? and what exactly are you trying to do to fix it?

    0
    Comment actions Permalink
  • Avatar
    Nagy Bela

    Hi not work for me.

    New error:

    Message: is_dir(): open_basedir restriction in effect. File(/var/lib/php/sessions) is not within the allowed path(s): (/var/www/vhosts/hdszex.hu/:/tmp/:/var/lib/php/session)

     

    Message: mkdir(): open_basedir restriction in effect. File(/var/lib/php/sessions) is not within the allowed path(s): (/var/www/vhosts/hdszex.hu/:/tmp/:/var/lib/php/session)

    0
    Comment actions Permalink
  • Avatar
    Nagy Bela

    The problem with the chmod session path, I change 777 and now work.

    0
    Comment actions Permalink
  • Avatar
    MAXsi Jaya

    I have followed the guidelines but the problem persists. please help me

     

    forum thread: https://talk.plesk.com/threads/error-help-open_basedir-restriction-in-effect-file-var-lib-php-sessions-is-not-within-the-allowed-path-s.355992/#post-875505

     

    1
    Comment actions Permalink
  • Avatar
    Alexey Lapshin (Edited )

    Hello @Nagy Bela

    Glad to hear that the issue resolved on your own. The default permissions for /var/lib/php/sessions are 733

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello MAXsi Jaya!

    Please, correct me if I'm wrong but as I understand, the issue is resolved at the forum.

    0
    Comment actions Permalink
  • Avatar
    Abhishek Savner (Edited )

    @Bulat Tsydenov

    Hi,

    I have follow all above setting but still it is showing open_basedir restriction.

    PHP Warning: opendir(): open_basedir restriction in effect. File(C:\ZFT\) is not within the allowed path(s):

    0
    Comment actions Permalink
  • Avatar
    Anzhelika Khapaknysh

    @Abhishek Savner,

    I'd recommend contacting our Support Team, so they may check the issue thoroughly. 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request