I'm trying to write on a file that is outside the document root, which is
The file I want to access is
/home/user/files/folder1/info.txt, but my PHP file can't open it (it does even say that it doesn't exist, I checked it with
I tried to chown the folder
/home/user/files recursively (
chown -R apache /home/user/files) and I also set the permissions to 777 on the info.txt file, but nothing seems to work.
I'm on CentOS and Apache2.