I am using apache web server on linux. I am using php for coding. My php code is not able to read the files from /var/tmp folder. If apache itself creates some files in /var/tmp folder then php code is able to read it. Why this permission denied issues are there though full access permissions are given to each file?
Posted 16 September 2014 - 01:45 PM
I have given 777 permissions and also tried by changing the owner to apache by chown apache filename. In error logs it shows: failed to open stream. Permission Denied.
Posted 16 September 2014 - 02:23 PM
Why this permission denied issues are there though full access permissions are given to each file?
it could be possible if the directory or the previous directory when the file is deployed has a 0 permissions to others. So, we need to see the output of:
ls -la /var/tmp/the_name_of_the_file
Edited by jazzman1, 16 September 2014 - 02:23 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users