• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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