Failed to write session data (files). Please verify that the current setting of session.save_path is correct

Follow

Comments

4 comments

  • Avatar
    Soni Vimal

    I am suffering from the same issue and I use CentOs system. I cross check session.save_path through phpinfo(); it shows /var/lib/php/session.

    I rest the permissions for it but still the issue is active. please help me to resolve it. 

     

  • Avatar
    Bulat Tsydenov

    @Soni, check the permissions and ownership of the folder:

    # ls -ld /var/lib/php/session
    drwx-wx-wt 2 root root 4096 Nov 6 00:32 /var/lib/php/session

    Permission should be 1733

  • Avatar
    Justin Lnch

    Should it be session or sessions? In centos it is session. Above you have sessions?

     

  • Avatar
    Lev Iurev

    Hi @Justin Lnch,

    Ubuntu, Debian - /var/lib/php/sessions/

    CentOS - /var/lib/php/session/

Please sign in to leave a comment.

Have more questions? Submit a request