• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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

AaronMcH

New Pleskian
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
 
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

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
 
Back
Top