You are not logged in.

#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)

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 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 data

But I changed to:

drwxrwxrwx 2 nobody nobody 4,0K VIII 23  2006 attachments
drwxrwxrwx 2 nobody nobody 4,0K VIII 23  2006 data

and 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-mode

I 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: 158

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-mode

I 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.

I agree!  I just ran into this same problem!

Offline

Board footer

Powered by FluxBB