1. which distro are you running
Code:
uname -a
cat /etc/*release*
check ownerships & perms of the dir and the file
Code:
ls -l
# if system uses Selinux; see qn 1
ls -lZ
3. who is the php running as; presumably as the webserver user eg one of httpd/apache/www etc