You are here: Re: open_basedir + symlinks « PHP « IT news, forums, messages
Re: open_basedir + symlinks

Posted by Brian Cohen on 10/04/22 11:08

Ok nevermind. The solution is that the symlink itself needs to have the
same file ownership as the directory to which it points.

-Brian


Brian Cohen wrote:
> I have a directory that contains symlinks to a whole bunch of other
> directories, each of which I am serving a website out of. For example:
>
> /websites/www.foo.com -> /var/websites/www.foo.com
>
> In my open_basedir declaration, both the link and the target directory
> are specified:
>
> php_value open_basedir\
> "/var/websites/www.foo.com:/websites/www.foo.com/:...etc..."
>
> The idea is so that in the websites' PHP code, I can write a filesystem
> path like:
>
> $path = "/websites/www.foo.com/bar.gif"
>
> However, when I do this, PHP still complains about
> /websites/www.foo.com/ being outside the open_basedir declaration.
>
> I'm not sure what's going on here, whether I'm doing something wrong or
> if this is a bug. I've Googled a bit and found evidence that this *may*
> be a bug, and that this bug is potentially fixed in CVS, but I figured
> I'd try here first.
>
> The bug report I found:
> http://groups-beta.google.com/group/mailing.www.php-dev/browse_thread/thread/1cd8ca305249cf04/dc954b90bc779a3f?q=open_basedir+symlink&_done=%2Fgroups%3Fq%3Dopen_basedir+symlink%26hl%3Den%26lr%3D%26client%3Dfirefox%26rls%3Dorg.mozilla:en-US:unofficial%26sa%3DN%26tab%3Dwg%26&_doneTitle=Back+to+Search&&d#dc954b90bc779a3f
>
>
> Any help would be greatly appreciated.
>
> Thanks!
>
> -Brian

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация