Squirrelmail problem with mod_ruid2

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,113
Location
California
Users cannot log into Squirrelmail except when using https.

System is running CentOS 5.x, mod_ruid2.
Php safe_mode is Off for both the domain name and the server hostname.

All files and Directories in the squirrelmail path are chowned webapps:webapps.

when user tries to login using an insecure URL:

http://www.example.com/squirrelmail

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

He's able to successfully log in successfully insecurely this way:

http://hostname.example.com/squirrelmail

and securely these ways:

https://www.example.com/squirrelmail
https://hostname.example.com/squirrelmail

We'd prefer to give out a machine independent URL that doesn't change if we move the user to another machine, and that doesn't return a Cert error. So we'd prefer to give the client a choice of an insecure or secure login at his own domain name.

I've already tried running the set_permissions script for email.

Has anyone had this problem? Any ideas on how to fix it?

(Note that roundcube works properly, but many of our clients have already set up squirrelmail, so we'd like to give them the option to continue using it.)

Thanks.

Jeff
 
@Arieh:
It's working now, after I did what you suggested (and of course then restarted apache).

However I've noticed a discrepancy in the mod_ruid2 instructions: the section is not in /etc/httpd/conf/httpd.conf, but rather in /etc/httpd/conf/extra/httpd-directories.conf (which is actually now a symbolic link to /etc/httpd/conf/extra/httpd-directories-old.conf).

I'm guessing this problem may have happened during a recent upgrade to apache, which made a lot of changes to the configuration.

So even though it's now working, I'm wondering if I should be using the httpd-directories-new.conf file instead.

Anyone have some insight?

Thanks!

Jeff
 
Thanks, Arieh. It's good to have this in one spot where it can be Googled.

Jeff
 
Back
Top