1.5 svn - FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!

View: New views
4 Messages — Rating Filter:   Alert me  

1.5 svn - FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!

by David C. Rankin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul,

        This one is obviously simple, but it has caught me off-guard. This is with
sqmail 1.5 svn Rev. 13786. The problem is sqmail can't access the data and
attach directories. Web server write permission right? I dunno? Doesn't look
like it.

        The WARNINGS & FATAL ERROR given by configtest.php:

    WARNING: You have configured PHP not to allow short tags
(short_open_tag=off). This shouldn't be a problem with SquirrelMail or any
plugin coded coded according to the SquirrelMail Coding Guidelines, but if
you experience problems with PHP code being displayed in some of the pages
and changing setting to "on" solves the problem, please file a bug report
against the failing plugin. The correct contact information is most likely to
be found in the plugin documentation.
Checking paths...

Warning: file_exists() [function.file-exists]: open_basedir restriction in
effect. File(/usr/local/share/sqmail/data) is not within the allowed path(s):
(/srv/http/:/srv/www:/home/:/tmp/:/usr/share/pear/)
in /srv/www/htdocs/squirrelmail/src/configtest.php on line 341

    FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!

        Huh?

[18:09 archangel:/srv/www/htdocs/squirrelmail] # l /usr/local/share/sqmail
total 16
drwxrwx--- 2 http http 4096 2009-01-20 12:37 attach
drwxrwx--- 2 http http 4096 2009-04-19 13:09 data
[18:10 archangel:/srv/www/htdocs/squirrelmail] #

l /usr/local/share/sqmail/data/
total 24
-rw------- 1 http http   41 2009-01-20 13:12 david.abook
-rw------- 1 http http  634 2009-04-19 13:09 david.pref
-rw------- 1 http http  174 2009-01-20 12:39 david.sig
-rw------- 1 http http  357 2009-01-20 13:12 globaladdress

[18:11 archangel:/etc/httpd/conf] # noc httpd.conf
ServerRoot "/etc/httpd"
Listen 80
<snip>
User http
Group http

        I am running Archlinux (shouldn't make a difference) where the web server
runs as user and group http. The directories are there and both the web
server and the group under which it runs has write permission. I must be
doing something incredibly ridiculous here. Can you help a brother out?


--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: 1.5 svn - FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!

by David C. Rankin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 16 June 2009 18:19:02 David C. Rankin, J.D.,P.E. wrote:
> Paul,
>
> This one is obviously simple, but it has caught me off-guard. This is with
> sqmail 1.5 svn Rev. 13786. The problem is sqmail can't access the data and
> attach directories. Web server write permission right? I dunno? Doesn't
> look like it.
>
<snip>
>
>     FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!
>
<snip>

> [18:09 archangel:/srv/www/htdocs/squirrelmail] # l /usr/local/share/sqmail
> total 16
> drwxrwx--- 2 http http 4096 2009-01-20 12:37 attach
> drwxrwx--- 2 http http 4096 2009-04-19 13:09 data
> [18:10 archangel:/srv/www/htdocs/squirrelmail] #
>
> l /usr/local/share/sqmail/data/
> total 24
> -rw------- 1 http http   41 2009-01-20 13:12 david.abook
> -rw------- 1 http http  634 2009-04-19 13:09 david.pref
> -rw------- 1 http http  174 2009-01-20 12:39 david.sig
> -rw------- 1 http http  357 2009-01-20 13:12 globaladdress
>
> [18:11 archangel:/etc/httpd/conf] # noc httpd.conf
> ServerRoot "/etc/httpd"
> Listen 80
> <snip>
> User http
> Group http
>
> I am running Archlinux (shouldn't make a difference) where the web server
> runs as user and group http. The directories are there and both the web
> server and the group under which it runs has write permission. I must be
> doing something incredibly ridiculous here. Can you help a brother out?

        This seems to be an Archlinux issue, or arch config issue. I just did the
same update on one of my other openSuSE servers and Rev. 13786 works just
fine.  Anybody have any ideas on what else to check?

--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: 1.5 svn - FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!

by Chris Hilts-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David C. Rankin, J.D.,P.E. wrote:
> Warning: file_exists() [function.file-exists]: open_basedir restriction in
> effect. File(/usr/local/share/sqmail/data) is not within the allowed path(s):
> (/srv/http/:/srv/www:/home/:/tmp/:/usr/share/pear/)
> in /srv/www/htdocs/squirrelmail/src/configtest.php on line 341
>
>     FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!


You answered your own question.  See the PHP manual for more info:

http://us.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir

Chris

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: 1.5 svn - FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!

by David C. Rankin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 16 June 2009 22:22:44 Chris Hilts wrote:

> David C. Rankin, J.D.,P.E. wrote:
> > Warning: file_exists() [function.file-exists]: open_basedir restriction
> > in effect. File(/usr/local/share/sqmail/data) is not within the allowed
> > path(s): (/srv/http/:/srv/www:/home/:/tmp/:/usr/share/pear/)
> > in /srv/www/htdocs/squirrelmail/src/configtest.php on line 341
> >
> >     FATAL ERROR: Data dir (/usr/local/share/sqmail/data/) does not exist!
>
> You answered your own question.  See the PHP manual for more info:
>
> http://us.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
>
> Chris


Thanks Chris:

        open_basedir =
/srv/http/:/srv/www:/home/:/tmp/:/usr/share/pear/:/usr/local/share/sqmail/


--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users