I am having the following problem with webmail Error opening ../data/default_pref Could not create initial preference file! /srv/webmail.uwasnet.org/web/data/ should be writable by user wwwrun Please contact your system administrator and report this error. File permission is set to 777 When i run the command ls -la /srv/www/webmail.uwasnet.org/web/data output of the command. I just ran it for a different site with the same problem mail:/srv/www/webmail.uwasnet.org/web/data # ls -la /srv/www/webmail.uwasnet.org/web/data total 20 drwxrwxrwx 2 web12 client5 4096 Aug 20 15:38 . drwxr-xr-x 18 web12 client5 4096 Aug 25 14:18 .. -rwxr-xr-- 1 web12 client5 14 Aug 20 15:38 .htaccess -rwxr-xr-- 1 web12 client5 41 Aug 20 15:38 default_pref -rwxr-xr-- 1 web12 client5 485 Aug 20 15:38 index.php So what next?
Still having the same problem Even after running the command chown wwwrun /srv/webmail.uwasnet.org/web/data/ I still have the same problem. There is a .htaccess file which has a deny all in it. Should i change the parameter to accept all?
Looks as if you have a problem in your webmail config file somewhere. Compare that paths, you missded the www directory: The error message says: /srv/webmail.uwasnet.org/web/data/ but the path is: /srv/www/webmail.uwasnet.org/web/data
The error message says Error opening ../data/default_pref Could not create initial preference file! /srv/www/webmail.uwasnet.org/data/ should be writable by user wwwrun Please contact your system administrator and report this error This is what is in the config file. $data_dir = '/srv/www/webmail.uwasnet.org/data/'; /** * Attachments directory * * Path to directory used for storing attachments while a mail is * being sent. There are a few security considerations regarding * this directory: * + It should have the permission 733 (rwx-wx-wx) to make it * impossible for a random person with access to the webserver to * list files in this directory. Confidential data might be laying * around there. * + Since the webserver is not able to list the files in the content * is also impossible for the webserver to delete files lying around * there for too long. * + It should probably be another directory than data_dir. * @global string $attachment_dir */ $attachment_dir = '/srv/www/webmail.uwasnet.org/attach/';