For your interest this is the situation. Quite interesting:
I'm using openbase_dir for security.


/home/virtual/domain1 ==symbolic==> site1/fst/ /home/virtual/site1/fst/var/www/squirrelmail-data so therefore: /home/virtual/domain1/var/www/squirrelmail-data is the same directory.

In squirrelmail vlogin config:
$data_dir = /home/virtual/###VIRTUALDOMAIN###/var/www/squirrelmail-data

In that domains apache's directives:
php_admin_value open_basedir /home/virtual/domain1/var/www/squirrelmail-data


The above doesn't work because of the symbolic link. I read that all symbolic links are resolved before checking against the the allowed baserdir's.
So I change apache to:


php_admin_value open_basedir /home/virtual/site1/fst/var/www/squirrelmail-data

However this won't work either.

It appears I actually have to change the vlogin config as well to show the actual path.

$site = exec(sitelookup(###VIRTUALDOMAIN###))
$data_dir = /home/virtual/site/fst/var/www/squirrelmail-data



you mean

$data_dir = /home/virtual/$site/fst/var/www/squirrelmail-data

?

($site, not site)



yes oops


if you need ###VIRTUALDOMAIN### to be replaced with "site1" then it might be possible to instead move your domain definition inside of vlogin's $virtualDomains array:


  'domain' => '/home/virtual/site1/fst/var/www/squirrelmail-data',

you mean 'data_dir' => ...?

yep. this time my blunder.

Yes although unfortunately the site numbers don't always stay the same!

OMG, what a horrible environment

I might write a custom lookup function which just uses a hash table. Annoying that the symbolic links don't work as described. Would make life much easier!



--

Open Guild, LLC
http://openguild.net/
Software.Systems.Solutions


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- squirrelmail-users mailing list Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to