开发者

Symbolic link to directory vs. "mount --bind" and rights

I have a webserver where I run two duplicite versions like this

 /home/doma开发者_如何学Pythonins/domainone.com/webroot
 /home/domains/domaintwo.com/webroot

Now, I want to share a directory and to be able to write to both of them.

 /home/images/
 -> /home/domains/domainone.com/webroot/images/
 -> /home/domains/domaintwo.com/webroot/images/

I can manage to do that with "mount --bind", but I always have to make sure, that the directory is mounted. When I use ln -s, I am not able to write to those directories from my PHP script in Apache, even though I set the rights to 777. As I say, with mount --bind, it works correctly, but I would prefer to use symbolic links.

Thanks


Try FollowSymLinks as described here


FollowSymLinks was already set, the problem was in fact in 'open_basedir' restriction, where the linked directory was not in the list.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜