Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have downloaded squirrelMail from SquirrelMail Official Website, then I uploaded the extracted files to a free hosting account on

when I try to connected to the Squirrel Mail, I get the following error

Error opening ../data/default_pref
Could not create initial preference file!
/data/ should be writable by user sikas
Please contact your system administrator and report this error.

I want to know how to solve this issue and what files exactly should be edited.

PS: I edited the config file but I`m not sure about the values I entered.

share|improve this question
up vote 0 down vote accepted

It is best that you configure SquirrelMail by running the script in the config directory. The problem you are dealing with is the result of incorrect permissions. Both the data directory and the attachment directory need to be writable by the user that the web server runs. If you do not know what user this is (www, www-data or something else) it chmod them to 1777.

share|improve this answer
do I chmod /data/ to 1777 or to 777?? and how can I run script? (Note: this is a free hosting) – sikas Nov 1 '10 at 21:36
I prefer 1777. When the sticky bit is set (the 1 in 1777), only the item's owner, the directory's owner, or the superuser can rename or delete files. – adamo Nov 1 '10 at 21:53
well, I have found another package that worked with me without having to chmod any file it is afterlogic. It is AWESOME!! ... yet I will mark your question as the answer as you were very helpful! – sikas Nov 1 '10 at 23:02

It might be that don't let you use SquirrelMail (anyway, isn't that included in cPanel?).

Have you tried chmodding /data/ to 777?

share|improve this answer
I have chmodded /data/ to 777 and all the files included. – sikas Nov 1 '10 at 21:37
It does exist in the CPanel, yet this is a company website and I won`t give the CPanel info to every employee in the company so I have installed the afterlogic webmail light which suited the company requirements. Thanks. – sikas Nov 2 '10 at 20:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.