Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have researched this quite a bit and I guess no one is having this problem. I am creating a new mail server.
apache 2.2.11-2
php 5.2.8-1
squirrelmail 1.4.17-3
When I run configtest.php, I get the error:
Code:
ERROR: Data dir (/var/local/squirrelmail/data/) does not exist!
When I try to login, I get the error:
Code:
Error opening ../data/default_pref
Could not create initial preference file!
/var/local/squirrelmail/data/ should be writable by user httpd
Please contact your system administrator and report this error.
I don't know which of the three packages are causing this problem. I have checked that the data directory exists, and I have tried all sorts of owners/permissions. I suspect that apache or php aren't allowing access outside of apache's root, or possibly expecting this directory chain within the apache root dir.
Thanks for the response, bathory. That's what I was suspecting. This data directory is an absolute path, outside of apache. I'm not sure how to apply the alias, since it is not something that users will directly access. It is defined in squirrelmail and just used within that app. The documentation recommends going outside of DocumentRoot, and the package installed with this directory.
I did try several variations of your directory code, without success. I tried your exact code, I tried adding a trailing "/", I added "data" to this, and I added another trailing "/". Any other suggestions.
I will try changing SM's config to be within the DocumentRoot, even though this is not recommended.
Well, reading the documentation it should work.
You didn't mentioned your distro, but seeing at your profile that you use redhat based distros, check to see if it isn't a selinux problem for the /var/local/squirrelmail directory.
Sorry, I should've mentioned that I am trying out Arch. I am really enjoying the total control that it gives. Much different than RH. I've seen the problems reported with selinux, but that shouldn't apply to me.
My workaround did get me going. I am still interested in solving this, since I am doing what they recommend not to do.
This is my config.php change in squirrelmail. It adds the directories within DocumentRoot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.