Error Opening Data Default_pref
Contents |
RecentChanges | Preferences Error: Error opening ../data/default_pref Could not create initial preference file! ../data should be writable by user apache Please contact your system administrator and report this error Potential solutions: Make sure you have specified (using the configuration tool) your data directory. If you error opening config default_pref have your data directory outside of your htdocs tree (not in the SquirrelMail directory,
Error Opening Data Default Pref Windows
which is advisable), make sure NOT to use relative paths when specifying it in conf.pl; please use the full absolute path; and
Error Opening Data Default Pref Iis
if editing the file manually, make sure "SM_PATH ." is removed for absolute paths. Make sure both your data directory AND its contents are readable and writeable by the user that your web server runs as (unless
/var/local/squirrelmail/data/ Should Be Writable By User Httpd
you run PHP in safe mode - see below). That means checking TWO things: ownership and permissions. Sample permissions are as follows: The data directory is: drwxrwxr-x 3 apache apache 8192 Apr 18 22:57 data/ the default prefs file inside of it is: -rw-rw-r-- 1 apache apache 82 Sep 18 2002 default_pref If you're running *nix, you can typically find out what user your web server is running as by doing this: % ps -ef | grep httpd apache 11812 7296 0 Nov11 ? 00:08:31 /usr/sbin/httpd -DSSL In this example, the user we want is called "apache". So, make sure apache has ownership over the data directory and its contents: chown -R apache data/ If you have PHP's safe mode enabled, change ownership to be the same user that owns your PHP scripts instead of the web server user. Make sure that you are using the default php.ini file without any other modification. Securing php as shown at the following link http://www.security-focus.com/infocus/1706 can cause the Error Opening message if open_basedir and/or safe_mode are not properly configured. If you have done all of the above, and it still doesn't work, and you are running a linux like Fedora Core 4, that has SELinux, there here is what to do: My data and attachment directories are outside of the html space, as recommended for security, and hence also outside of the space that squirrelmail, run by httpd, is allowed to access. Running: # chcon -t httpd_squirrelmail_t /usr/share/squirrelmail/attachments # chcon -t httpd_squirrelmail_t /usr/share/squirrelmail/data fixed the problem! For IIS make sure to add IUSR_MachineName to the Permission for the ..\Data\ directory. Edit this document | View document history Document last modified Tue, 03 Apr 2007 15:20:29 Search: © 1999-2016 by The SquirrelMail Project Te
when logging into squirrelmail:ERROR Error opening ../data/default_pref Default preference file not https://help.directadmin.com/item.php?id=209 found or not readable! Please contact your system administrator and report this errorensure that you have not enabled safe_mode globally in your /usr/local/lib/php.ini file. (set it to off). If you want safe_mode on your domains, then enable them from: Admin Level -> PHP Safemode Configuaration
that doesn't really have anything to do with hMailServer. Such as php.ini, beer, etc etc. Post Reply Print view Search Advanced search 7 https://www.hmailserver.com/forum/viewtopic.php?t=9796 posts • Page 1 of 1 jos New user Posts: https://www.experts-exchange.com/questions/24280286/Error-opening-data-default-pref.html 2 Joined: 2007-07-10 11:41 Squirrelmail Problems Quote Postby jos » 2007-07-10 12:24 G'day, i'm having problems with squirrelmail. Windows XP, Abyss web server, Hmail server works perfectly ... installed squirrelmail and get after username and password login this error message: Error opening error opening ../data/default_pref Could not create initial preference file! /var/local/squirrelmail/data/ should be writable by user httpd Please contact your system administrator and report this error. Has anyone an idea what the problem could be? Thanx Jos Top ^DooM^ Site Admin Posts: 13862 Joined: 2005-07-29 16:18 Location: UK Quote Postby ^DooM^ » 2007-07-10 12:46 /var/local/squirrelmail/data/ error opening data should be writable by user httpd This is not a hmail issue though. Top martin Developer Posts: 6773 Joined: 2003-11-21 01:09 Location: Sweden Contact: Contact martin Website Quote Postby martin » 2007-07-10 13:10 You need to read the documentation... http://squirrelmail.org/wiki/DataPermission If that doesn't help you, ask in a SquirrelMail forum instead. Top jos New user Posts: 2 Joined: 2007-07-10 11:41 Quote Postby jos » 2007-07-11 00:33 Thanx Martin Top weeping New user Posts: 1 Joined: 2007-11-13 14:51 solution Quote Postby weeping » 2007-11-13 14:58 after wasting some time searching on google for an answer that wasn't there i found this on conf.pl on a squirrelmail-1.4.8 version: General Options 1. Data Directory : ../data/ 2. Attachment Directory : $data_dir on squirrelmail-1.4.11 they are: General Options 1. Data Directory : /var/local/squirrelmail/data/ 2. Attachment Directory : /var/local/squirrelmail/attach/ just replace your actual version (squirrelmail-1.4.11 in my case) General Options settings with the older path and - it W
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Error opening ../data/default_pref Want to Advertise Here? Solved Error opening ../data/default_pref Posted on 2009-03-31 Email Protocols Email Software Internet / Email Software 1 Verified Solution 5 Comments 2,389 Views Last Modified: 2013-11-29 Dear Experts, I have configured squirrelmail with Courier IMAP on RHEL 4. The problem is that when I am trying to login on Squirrelmail,it is giving a error message that is given below: Error opening ../data/default_pref Default preference file not found or not readable! Please contact your system administrator and report this error. I have that default_pref file in the data folder of the squirrelmail folder. The location is : /usr/local/squirrelmail/data/default_pref. The data folder contains 2 files.One is default_pref.Another one is index.php. The contents of the default file is given below: full_name= reply_to= chosen_theme=. ./themes/default_theme.php show_html_default=0 folder_sizes_on_folder_page=1 folder_sizes_left_link=1 folder_sizes_subtotals=1 The permission given to this default_pref file is -rwxrwxrwx. File owner is Apache File group is Apache Please help me out to solve this problem and let me know whether any additional configurations are to be made. Thanks and Regards, PAG-EAST 0 Question by:pageast Facebook Twitter LinkedIn Google Best Solution bypageast Dear all, We have changed the permission of that file to 777 and it worked. Thanks a lot for your precious time. Go to Solution 1 Comment Message Accepted Solution by:pageast2009-04-08 Dear all, We have changed the permission of that file to 777 and it worked. Thanks a lot for your precious time. 0 Write Comment First Name Please enter a first name Last Name Please enter a last name Email We will never share this with anyone. Comment Submit Your Comment By clicking you are agreeing to Experts Exchange's Terms of Use. Featured Post Better Security Awareness With Threat Intelligence Promoted by Recorded Future See how one of the lea