0

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

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.

sikas
  • 124
  • 7

2 Answers2

1

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

Have you tried chmodding /data/ to 777?

Joseph Redfern
  • 197
  • 1
  • 5
  • I have chmodded /data/ to 777 and all the files included. – sikas Nov 01 '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 02 '10 at 20:18
0

It is best that you configure SquirrelMail by running the conf.pl 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.

adamo
  • 6,867
  • 3
  • 29
  • 58
  • do I chmod /data/ to 1777 or to 777?? and how can I run config.pl script? (Note: this is a free hosting) – sikas Nov 01 '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 01 '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!! http://www.afterlogic.com/ ... yet I will mark your question as the answer as you were very helpful! – sikas Nov 01 '10 at 23:02