Squirrelmail error opening ../data/default_pref

djw

Verified User
Joined
Oct 9, 2008
Messages
11
Location
Georgia
This is my error when trying to login to squirrelmail.

version 1.4.16

Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error

ls -la
total 84
drwxrwx--- 2 webapps webapps 4096 Oct 28 15:06 .
drwxr-xr-x 16 webapps webapps 4096 Sep 28 10:01 ..
-rwxrwxrwx 1 webapps webapps 41 Sep 29 13:23 default_pref
-rwxrwx--- 1 webapps webapps 14 Sep 29 13:23 .htaccess
-rwxrwx--- 1 webapps webapps 485 Sep 29 13:23 index.php

I tried to change the ownership to apache:apache and didn't work


Any ideas?
 
Are the permissions right on the parent folders?
 
I doubt thats whats wrong. Are you seeing any errors in /var/log/httpd/error.log

You might want to try:

cd /usr/local/directadmin/scripts/
./set_permissions.sh email
 
Why would this "all of a sudden" happen?
and where would I find this "data" folder exactly?
seems its only squirrelmail as uebimiau works fine
 
/var/www/html/squirrelmail/data

Its the folder where squirrelmail keeps its user settings and user address books. Thats all its used for.
 
thanks for the QUICK reply :)
I did change permissions but still have
Error opening ../data/default_pref
Default preference file not found or not readable!
also that data folder is empty?
also its owned by Apache
 
Last edited:
You might have to update squirrelmail or just touch the data file.

First I would try:

cd /usr/local/directadmin/custombuild
./build update
./build squirrelmail

if that doesnt fix it then just try:

touch /var/www/html/squirrelmail/data/default_pref
chown apacheuser:apacheuser /var/www/html/squirrelmail/data/default_pref
chmod 600 /var/www/html/squirrelmail/data/default_pref

replace apacheuser as the actual user your webserver runs as.
 
trying...
at 1st command cd /usr/local/directadmin/custombuild
I get
No such file or directory
as there isnt a "custombuild"
I do have /usr/local/directadmin/customapache

something happened on the 23rd of this month, as the data dir date was changed then.

another thing, SquirrelMail configtest says its fine...
 
Last edited:
To install custombuild you have to do:

cd /usr/local/directadmin
wget "http://files.directadmin.com/services/custombuild/1.1/custombuild.tar.gz"
tar xvzf custombuild.tar.gz
cd custombuild

./build update
./build squirrelmail


Its just like customapache but has different things.
 
Thanks for your help :)
all that was needed was
touch /var/www/html/squirrelmail/data/default_pref
and now is working ;)
 
Back
Top