I tried the solution here PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/session) failed: Permission - #3 by Zalcig by doing chmod -R 1773 session
within /var/lib/lsphp
2021-11-13 12:49:10.342335 [NOTICE] [35886] [172.68.110.131:22652:HTTP2-3#keyauth.com] [STDERR] PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/lsphp/session/lsphp80) failed: Permission denied (13) in /home/keyauth.com/public_html/dashboard/index.php on line 2
It did not work, still recieving this error. It did however change something relative to doing this command
root@keyauth:/var/lib/lsphp/session# ls -ld *
drwxrwx-wt 2 root root 4096 Oct 7 18:02 lsphp72
drwxrwx-wt 2 root root 4096 Nov 12 09:26 lsphp73
drwxrwx-wt 2 root root 4096 Nov 6 13:50 lsphp74
drwxrwx-wx 2 root root 34611200 Nov 13 12:36 lsphp80
the lsphp80 directory used to be blue with green background, while the others were black with green background, which I’ve learnt means the lsphp80 directory was not stickied. This probably happened the first time I had to delete and recreate the folder when the size became too large.
And once again this error is ocurring on my other server where until last week when you told me to try a command and it didn’t work and I had to delete directory, I had not modified any folders. So I’m not sure what to tell you as this happened straight from the start before I made any changes to permissions or directories.