Domain on Plesk with WHMCS shows error: The PHP session save path /var/lib/php/session is not writable

Follow

Comments

15 comments

  • Avatar
    Alexander Rieder

    For me this is not working....

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    @Alexander Rieder

    Hello!

    Could you share some additional information? Was the initial error identical to the error in the article? Did the behavior remain the same after resolution or different error appeared?

    0
    Comment actions Permalink
  • Avatar
    Gert Koekemoer

    Hi,

    Unfortunately it is also not working for me. I am just getting a login loop on WHMCS and it does not allow me in.

    0
    Comment actions Permalink
  • Avatar
    Alexandr Tumanov

    @Gert

     

    Hi, are you getting the same error? Can you share it in full?

    0
    Comment actions Permalink
  • Avatar
    Gert Koekemoer

    @Alexandr

    Hi,

    I found the problem. In the Resolutions provided the text states to use:

    open_basedir: ":{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/home/example/whmcsdata/sessions"

    However the screenshot shows the following:

    open_basedir: ":{WEBSPACEROOT}{/}{:}{TMP}{/}:/home/example/whmcsdata/sessions"

    No {:} but only :, I just removed the { } and problem sorted.

    0
    Comment actions Permalink
  • Avatar
    Alexandr Tumanov

    @Gert, thanks for info!

    So the right working path for you is open_basedir: ":{WEBSPACEROOT}{/}{:}{TMP}{/}:/home/example/whmcsdata/sessions" ?

    If yes, the screenshot is right.

    0
    Comment actions Permalink
  • Avatar
    Gert Koekemoer

    Yes, the screenshot is correct.

    0
    Comment actions Permalink
  • Avatar
    Marcos Paulino Chahin

    Create a sessions path in the root of your webspace, same place you have your temp and templates_c directories, and set it this way:

    include_path: ":/opt/plesk/php/7.0/share/pear:{webspaceroot}{/sessions}"
    session.save_path: "/var/www/vhosts/yourdomain.com/sessions"  (Notice there is no colon in the beginning)
    open_basedir: ":{WEBSPACEROOT}{/}{:}{TMP}{/}:{webspaceroot}{/sessions}"

    Tested working here:

       
    Product Plesk Onyx
    Version 17.8.11 Update #5, last updated on April 15, 2018 02:48 AM

     

    1
    Comment actions Permalink
  • Avatar
    Alexandr Tumanov

    @Marcos, thanks for sharing!

    0
    Comment actions Permalink
  • Avatar
    Thiago Silva

    @Marcos, thank you! It helped a lot!

    1
    Comment actions Permalink
  • Avatar
    Ilfad Liđan

    Hello, this is not work for me.

    Solution that work for me:

    include_path: :/usr/share/pear:/usr/share/php

    session.save_path: /tmp

    open_basedir: {WEBSPACEROOT}{/}{:}{TMP}{/}

    1
    Comment actions Permalink
  • Avatar
    Daniel G.

    Hello / Hola.

    I have tried with all the configurations that I have seen here, changed the permissions, changed the routes of the session modifications, installed new versions and obsolete versions of php, modified the php.ini and none of them worked for me... What could it be happening? I do not know what else to do...

    0
    Comment actions Permalink
  • Avatar
    Daniel G.

    Hello / Hola.

    I have tried with all the configurations that I have seen here, changed the permissions, changed the routes of the session modifications, installed new versions and obsolete versions of php, modified the php.ini and none of them worked for me... What could it be happening? I do not know what else to do...

     
    0
    Comment actions Permalink
  • Avatar
    Mubox Digital

    Hi Marcos, I also have the same problems, I followed your advice:

    include_path: ":/opt/plesk/php/7.0/share/pear:{webspaceroot}{/sessions}"
    session.save_path: "/var/www/vhosts/yourdomain.com/sessions"  (Notice there is no colon in the beginning)
    open_basedir: ":{WEBSPACEROOT}{/}{:}{TMP}{/}:{webspaceroot}{/sessions}"

    and its working perfect now, awesome man, thank you!

    0
    Comment actions Permalink
  • Avatar
    Manuel Nunes (Edited )

    The solution was helpfull straightforward and it was usefull,

    I did just that changed the line in php.ini to semicolon to just disable it but not deleted...
    ; session.save_path = "/var/lib/php/sessions"

    than added the one recommended with plesk for linux
    session.save_path = "/var/www/vhosts/example.com/phpsessions"

    but the error persists, than i changed  

    session.auto_start = 0

    to

    session.auto_start = 1

    and now the error message in WHMCS is

    PHP Session Support
    PHP session support is enabled.
    Session autostart is enabled. This will prevent WHMCS from remembering user logins. Please disable the session.auto_start PHP setting.
    The PHP session save path /var/www/vhosts/example.com/httpdocs/phpsessions is writable.


     than reverted php.ini to

    session.auto_start = 0

    and voilá!

    Looking Good!
    Check you out. No issues needing attention! Good job!



    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request