Sometimes, Horde webmail login may fail due to permission issues on session files. When this happens, the Apache error log usually shows permission-related PHP warnings.
Common Error Seen in Apache Logs
You may find errors like the following in the Apache error log:
PHP Warning: Unknown: open(/var/cpanel/userhomes/cpanelhorde/sessions/sess_6f4fe8e66b99d89b239eb0839e3393a7, O_RDWR) failed: Permission denied (13) in Unknown on line 0
PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/cpanel/userhomes/cpanelhorde/sessions) in Unknown on line 0
These errors indicate that PHP is unable to create or write session files because of incorrect file or directory ownership.
Root Cause
The ownership of files and directories under
/var/cpanel/userhomes/cpanelhorde/
is incorrect. As a result, Horde cannot write session data.
Steps to Resolve the Issue
-
Navigate to the Horde user home directory:
cd /var/cpanel/userhomes/cpanelhorde/ -
Correct the ownership of all files and directories:
-
Monitor the error log to confirm the fix:
After fixing the ownership, Horde can successfully write session files, and users will be able to log in to their Horde email accounts without errors.
If you require help, contact SupportPRO Server Admin
