Allow Apache/PHP a read/write access to a mounted directory
We have websites running on a linux server with apache httpd and php. On that server a certain directory from a windows server is mounted as let's say /mnt/some_directory/ . I can browse this directory with both WinSCP or SSH, using my own user account. I can also perform the following in SSH: php -r "print_r(file_get_contents('/mnt/some_directory/file_name.txt'));" and see contents of that file. We need to read a file and parse from that directory in order to import it in the database that is used by the website. But when an fopen or a file_get_contents on the website we get a permission