You are here: Re: [PHP] sym links « PHP « IT news, forums, messages
Re: [PHP] sym links

Posted by Richard Lynch on 09/26/16 11:08

timothy johnson wrote:
> I am trying to write a php script that can read a dir which I have
> linked into my public_html dir. But I get permission errors, what do I
> need to change? Is this an Apache problem, gentoo, or php?

It's not a PHP problem.

Apache has a directive that allows it to either follow sym links, or not,
as well as another directive that allows you to over-ride that in
..htaccess, or not.

The permissions on the symlink itself are pretty much ignored in Linux
(Gentoo) as I understand it.

If PHP can't read the real file being linked to, then you have to change
those permissions.

Can't tell you exactly which (Apache or real file permissions) you messeed
up...

Try using the FULL path to the real file with no symlinks.

If that doesn't work, then PHP can't read the file, and the symlink won't
help.

If the FULL path to the real file works, but the symlink doesn't, it's
your httpd.conf settings for "FollowSymLinks" and/or "AllowOverride" with
..htaccess control of the symlinks.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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