SquirrelMail: Could not create initial preference file
Tagged:  •  

After a login attempt at the Squirrelmail page I got the following error:

Could not create initial preference file!
/var/spool/squirrelmail/pref/ should be writable by user httpd
Please contact your system administrator and report this error.

Note that the name httpd could be something else, like www or wwwuser. But despite that, I checked the permissions for the mentioned folder but everything was OK.

It seemed to be that the open_basedir directive of php.ini didn't allow opening/writing into that dir. So simply appending that folder to open_basedir did make the error go away.