1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Question Incorrect permissions on /var/lib/php/session

Discussion in 'Plesk Onyx for Linux' started by AaronMcH, Dec 6, 2017.

  1. AaronMcH

    AaronMcH Basic Pleskian

    12
    60%
    Joined:
    Jul 5, 2013
    Messages:
    26
    Likes Received:
    0
    Hello

    We are running Plesk Onyx (Version 17.5.3 Update #33) on CentOS, a colleague of mine was trying to us Larvel and to use one of the tools he had to upgrade the built in version of PHP from 5 to 7.1 so used yum to do the update. This then broke Plesk (probably because between PHP 5 and 7 some file paths have changed), and as such he then had to reverse the upgrade and downgrade back to PHP 5.

    As a result of this permissions on /var/lib/php/session must have been changed because we were getting permission errors when PHP tried to store session data.

    I was able to fix this but wanted to know if this was a known issue, as any documentation I found on Plesk's site said that this issue of permissions being set incorrectly had been fixed.

    Additionally I'd like to know if there are any plans to update Plesk so it doesn't require PHP 5 to be installed because in an ideal world we shouldn't need to even have PHP 5 installed anymore.

    Thanks
    Aaron
     
  2. virtubox

    virtubox Regular Pleskian Plesk Guru

    19
    60%
    Joined:
    May 4, 2016
    Messages:
    206
    Likes Received:
    72
    Location:
    France
    Plesk use specific php-packages. If your colleague used yum install to add a php version, it's not correct.
    You can add or remove php packages from the Plesk installer with the web interface or with the CLI.

    Normal permissions for /var/lib/php/sessions are 1777.
    So you can use
    Code:
    chmod 1777 /var/lib/php/sessions
     
Loading...