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

Follow

Comments

11 comments

  • Avatar
    Alexander Rieder

    For me this is not working....

  • 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?

  • 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.

  • Avatar
    Alexandr Tumanov

    @Gert

     

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

  • 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.

  • 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.

  • Avatar
    Gert Koekemoer

    Yes, the screenshot is correct.

  • 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

     

  • Avatar
    Alexandr Tumanov

    @Marcos, thanks for sharing!

  • Avatar
    Thiago Silva

    @Marcos, thank you! It helped a lot!

  • 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}{/}

Please sign in to leave a comment.

Have more questions? Submit a request