Domain with WHMCS shows error:
The PHP session save path /var/lib/php/session is not writable. Please investigate the session.save_path PHP setting or contact your system administrator.
Warning: session_start(): open(C:WindowsTempsess_udfqa0si9tsg9i89dhene7ms78, O_RDWR) failed: Permission denied (13) in C:inetpubvhostsexample.comincludesconnect.php on line 2
Permissions for the folder mentioned in the error are correct:
# ls -la /var/lib/php/
drwx-wx-wt 2 root root 4096 Nov 15 23:36 session
C:> UsersAdministrator>icacls C:WindowsTemp
C:WindowsTemp NT AUTHORITYNETWORK SERVICE:(CI)(RX,D,WD,AD)
Subscription system user directory for sessions is not created or it is not set in the session.save_path PHP settings.
Note: in case there is no WHMCS installed on the same server, refer to the following article: Website hosted in Plesk displayed incorrectly or showing the PHP warning: Failed to read session data: files
It is required to create a special directory for the PHP sessions. It is possible to do it via SSH (for Linux) or via Plesk UI (for both Linux and Windows).
Using Plesk Interface