Error I Cannot Write To Data Dir /var/local/squirrelmail/data
Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ I cannot write to data dir (/var/local/squirrelmail/data/)! Keep getting this error on configtest SquirrelMail version: 1.4.10a Config file version: 1.4.0 Config file last modified: 25 July 2007 14:04:13 Checking PHP configuration... PHP version 4.3.9 OK. PHP extensions OK. Checking paths... ERROR: I cannot write to data dir (/var/local/squirrelmail/data/)! I have tried everything to make sure ownership is correct but nothing is working. I know it must be something small I am missing but cant find the problem Assuming this error on the login has to do with this ERROR Error connecting to IMAP server: localhost. 111 : Connection refused ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/-- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelinesList Address: [hidden email] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.userList Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users Paul Lesniewski Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: I cannot write to data dir (/var/local/squirrelmail/data/)! On 7/26/07, Alfredo Chinchilla <[hidden email]> wrote: > Keep getting this error on configtest > > SquirrelMail version: 1.4.10a > Config file version: 1.4.0 > Config file last modified: 25 July 2007 14:04:13 > > > Checking PHP configuration... > PHP version 4.3.9 OK. > PHP extensions OK. > Checking paths... > > ERROR: I cannot write to data dir (/var/local/squirrelmail/data/)! > > I have tried everything to make sure ownership is correct but nothing is > working. I know it must be something small I am missing but cant find the > problem If you want help, then read the mailing list posti
1 #1 2007-06-18 15:05:42 qwak Member Registered: 2007-04-22 Posts: 17 squirrelmail problem - data dir does not exist [solved] After install package, configuration (conf.pl) and log in I see error:Could not create initial preference file! /var/lib/squirrelmail/data/ should be writable by user nobody Please contact your system administrator and report this error.When I run http://mydomain/squirrelmail/src/configtest.php I see:FATAL ERROR: Data dir (/var/lib/squirrelmail/data/) does not exist!Of course /var/lib/squirrelmail/data/ exists (created by pacman) and its is owned by nobody.Problem is independent of /var/lib/squirrelmail/data/ permission. Last edited by qwak (2007-06-18 16:20:50) http://squirrelmail.5843.n7.nabble.com/I-cannot-write-to-data-dir-var-local-squirrelmail-data-td7218.html Offline #2 2007-06-18 15:13:14 KomodoDave Member From: Oxford, UK Registered: 2007-04-22 Posts: 162 Website Re: squirrelmail problem - data dir does not exist [solved] qwak wrote:Problem is independent of /var/lib/squirrelmail/data/ permission.Are you certain? What rxw permissions does ls -lh show? - Dave Offline #3 2007-06-18 15:20:19 qwak Member Registered: 2007-04-22 Posts: 17 Re: squirrelmail problem - data dir does https://bbs.archlinux.org/viewtopic.php?id=34293 not exist [solved] Just after install:d-wx------ 2 nobody nobody 4,0K VIII 23 2006 attachments drwx------ 2 nobody nobody 4,0K VIII 23 2006 dataBut I changed to:drwxrwxrwx 2 nobody nobody 4,0K VIII 23 2006 attachments drwxrwxrwx 2 nobody nobody 4,0K VIII 23 2006 dataand effect is the same./var and /var/lib has of course execute and read for all. Offline #4 2007-06-18 16:19:42 qwak Member Registered: 2007-04-22 Posts: 17 Re: squirrelmail problem - data dir does not exist [solved] Soved.It was php security issue and some changes in http (or php) configuration was required.See: http://pl2.php.net/features.safe-modeI just set:php_admin_value open_basedir /in my mail virtual host section.I thing that squirrelmail package should include .../extra/http-squirrelmail.conf apache configuration file with required configuration or some info should by typed to user when squirrel package is installed. Offline #5 2008-02-11 21:36:04 darose Member Registered: 2004-04-13 Posts: 120 Re: squirrelmail problem - data dir does not exist [solved] qwak wrote:Soved.It was php security issue and some changes in http (or php) configuration was required.See: http://pl2.php.net/features.safe-modeI just set:php_admin_value open_basedir /in my mail virtual host
2011, 11:25 PMI'm new to linux and trying to solve this problem. I have followed the perfect server 10.10 setup https://ubuntuforums.org/archive/index.php/t-1684788.html and I have got a basic page up and running. If I use the IP address of the server /webmail I can log in, if I use the .com/webmail I can't log in and get this error. "Error opening ../config/default_pref Could not create initial preference file! /var/lib/squirrelmail/data/ should be writable by user www-data Please contact your system administrator error i and report this error." This is my output of ls -la /var/lib/squirrelmail/data/ drwxrwx--- 2 root www-data 4096 2011-02-09 12:36 . drwxr-xr-x 3 root root 4096 2011-02-09 12:02 .. -rwxrwx--- 1 www-data www-data 108 2011-02-09 12:36 postmaster@"website".com.pref Any ideas? KooothorFebruary 10th, 2011, 04:15 AMHello, This looks like a permission problem, very common on Unix box :) Try this : sudo error i cannot chmod 730 /var/lib/squirrelmail/data/ source (http://squirrelmail.org/docs/admin/admin-3.html) and Ctrl-f : 0730 ( If that doesn't work, try to see if sudo chmod 777 /var/lib/squirrelmail/data/ resolves the matter. Lightning200MPHFebruary 11th, 2011, 05:30 AMI've been trying to figure this out and messing around with different chmod settings. I did chmod -R 777 also but it didn't work either. This is what it is set to now, but I can only log in on the local network address. total 12 drwxrwxrwx 2 root www-data 4096 2011-02-10 22:18 . drwxr-xr-x 3 root root 4096 2011-02-10 21:32 .. -rw------- 1 www-data www-data 207 2011-02-10 22:18 postmaster@"website".com.pref I wiped out another box and duplicated my setup so I can "try" stuff. I've been reading on the setup link but I haven't figured anything out yet, I've also been searching the web looking for others with the same problem. elicoFebruary 11th, 2011, 08:51 PMthere is a nice config.pl file and try to setup the settings directory in a related path such as: /var/www/sqdata and with permissions of 777 just to make sure.. and