UnamSanctam / UnamWebPanel

MIT License
164 stars 61 forks source link

PHP Startup: failed to read session data #299

Closed jakubbak-online closed 7 months ago

jakubbak-online commented 7 months ago

Hi! Every time i try to log in i get an error image

It seems that every log in generates following lines in error.log file:

[20-Nov-2023 15:45:42 **********] PHP Warning: PHP Startup: open(/tmp/sess_egfk5uio6j0l24khsu8vijiqr8, O_RDWR) failed: No such file or directory (2) in /webpanel/assets/php/session-header.php on line 4 [20-Nov-2023 15:45:42 **********] PHP Warning: PHP Startup: Failed to read session data: files (path: /tmp) in /webpanel/assets/php/session-header.php on line 4

Hope it's possible to somehow resolve this problem ^^

UnamSanctam commented 7 months ago

Maybe you don't have permission to write to the /tmp folder, you'll probably have to check with your webhost how they want you to set up sessions.

jakubbak-online commented 7 months ago

Maybe you don't have permission to write to the /tmp folder, you'll probably have to check with your webhost how they want you to set up sessions.

yeah, that was the issue, sorry for that

my webhost's policy was pretty weird when it comes to /tmp, and session handling; tried everything, finally, it worked when i switched hosting, just didn't want to waste time at attempting to fix it

thank for help, and sorry for hassle