Squirrelmail local login works but not from somewhere else
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.
Squirrelmail local login works but not from somewhere else
Hello,
I just installed Squirrelmail and tested it locally (http://localhost/squirrelmail) and it works but when I try to login externally (http://www.example.com/squirrelmail) I get following error messages:
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 and report this error.
Does anyone know why this could be? Permissions are set correctly cause it's working locally...
No and I think it doesn't need to be there cause the pref file for my account was correctly created when I logged in locally and it's in that directory. I copied it there anyway to try but no change, same error.
I did that configtest.php. No errors and then I logged in using the link on configtest.php and it worked because it was locally. Tried it externally and it didn't work.
Permissions:
ls -l /var/lib/squirrelmail
drwxr-xr-x 2 www-data www-data 4096 2009-09-15 12:29 data
I just did a configtest.php externally and look what I got:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/lib/squirrelmail/data/) is not within the allowed path(s): (/var/www/vhcs2/gui/:/etc/vhcs2/:/proc/:/var/www/virtual/:/tmp/) in /var/www/vhcs2/gui/tools/squirrelmail/src/configtest.php on line 226
ERROR: Data dir (/var/lib/squirrelmail/data/) does not exist!
I guess I just need to add /var/lib/squirrelmail/data/ to the open_basedir?
Tried it and didn't help, now put data and attach to a allowed path and changed the paths via squirrelmail_config and I get:
ERROR: Data dir (/var/lib/squirrelmail/data/) does not exist!
I only need to change it via squirrelmail_config, right? I restarted Apache and cleared the cache. Weird.
It's weird indeed. The strange thing is that it works for localhost.
I know little about apache in debian, but IIRC you have to run "a2ensite www.example.com" to enable a vhost. Have you done that?
The domain is working for sure cause I can access www.example.com
I keep changing the directory in the squirrelmail-configuration but always get ERROR: Data dir (/var/lib/squirrelmail/data/) does not exist! Is there maybe some other config file that has this value?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.