Arieh
Verified User
I'd be happy to. Maybe I should just make a whole new thread? Currently it's quite a mess and lots needs to be changed, added & removed. Ill make some time for it soon.
The only problem we have with squirrelmail is when moving a user from a machine without mod_ruid2 to a machine with it. We find the prefs file isn't readable. We fix it by changing ownership of all the squirrelmail to webapps:webapps.
Jeff
That would be WONDERFUL! I will be going through our severs soon for security and to add WebDAV using roark's instructions at WebDav Instructions/configuration to support session-based PHP debugging with PHPEd. The current thread would require a lot of time to figure out.I'd be happy to. Maybe I should just make a whole new thread? Currently it's quite a mess and lots needs to be changed, added & removed. Ill make some time for it soon.
I don't think that should be necessary, did you add RUidGid webapps webapps to <Directory "/var/www/html">, as in the tutorial on page 1? You might have missed it, since it was added later.
[root@server ~]# chown -R webapps:webapps /var/www/html/squirrelmail/data
chown: cannot access `/var/www/html/squirrelmail/data': No such file or directory
[root@server ~]# cd /var/www/html/squirrelmail/data
-bash: cd: /var/www/html/squirrelmail/data: No such file or directory
[root@server ~]#
Then How to install it under Direct Admin Build ?
cd /usr/local/directadmin/custombuild/
vi options.conf
squirrelmail=no to squirrelmail=yes
./build squirrelmail
change:
then:
During login, I get this error:
How to fix this ?PHP:ERROR Error opening ../data/default_pref Default preference file not found or not readable! Please contact your system administrator and report this error.
as root user ???chown -R webapps:webapps /var/www/html/squirrelmail/data
that worked for mechmod 711 /var/www/html/squirrelmail/data/
During login, I get this error:
How to fix this ?PHP:ERROR Error opening ../data/default_pref Default preference file not found or not readable! Please contact your system administrator and report this error.
Edit by NoBaloney; see posts 324 and 325, page 17 of this thread:
And last you need to modify httpd-directories.conf
Code:
nano -w /etc/httpd/conf/extra/httpd-directories.conf
Add the RUidGid line below between the <Directory "/var/www/html"> and </Directory>
Code:
<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
SetEnv PHP_INI_SCAN_DIR
</IfModule>
RUidGid webapps webapps
</Directory>
* Thanks to Arieh for this change.
Did you run as root user ???
You can also try that worked for me
[root@server custombuild]# sudo chown -R webapps:webapps /var/www/html/squirrelmail/data
[root@server custombuild]# sudo chmod 711 /var/www/html/squirrelmail/data/
[root@server custombuild]#
Error opening /var/www/html/squirrelmail/data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error.
ERROR
You must be logged in to access this page.