Web Mail (SquirrelMail) Breaks with PHP.ini Safe Mode On

Mindwatering Incorporated

Author: Tripp W Black

Created: 02/23/2007 at 01:35 PM

 

Category:
OS X Configuration
Web Service - HTTP, Web Service - PHP

Issue:
Turning on Safe Mode in the php.ini on OSX server seems to break web mail login:
"Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error."

Solution:
Turn off Safe Mode.
or
Chown of pref files to apache apache.

Possible locations:
/usr/lib/squirrelmail-1.4.5/data/default_pref
or
/etc/squirrelmail
or
/var/db/squirrelmail/data

Also, you can add folders as "safe folder", e.g.:
php.ini:
include_path =
"./:/any/other/path/to/include/files:/as/many/more/as/you/like"

.htaccess
php_value include_path
"./:/any/other/path/to/include/files:/as/many/more/as/you/like"

previous page

×