|
Posted by Richard Lynch on 10/04/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
[Back to original message]
|