I'm trying to access a mounted drive from within PHP/Apache (LAMP @ CentOS). For instance by doing a scandir:
scandir($dir);
Although this works fine for any directory which is on the same physical disc Apache is installed at (including root, var, etc, ..), It does not work for external mounted disks:
scandir('/var/log'); which is on the local drive that also holds /var/www/html
delivers valid output, whereas
scandir('/mnt/data'); (which is a mount to an external fs) doesn't.
I have been experimenting with filesystem permissions and httpd.conf directives (Alias / Directory), but have not been able to find the solution yet.
Can anyone point me into the direction of how to access external drives (/mnt/whatever) from apache/PHP? Thx!