Actually, everything here is incorrect, 755 for the file is very wrong.
This means that the owner is reading / writing / executing. read / execute by the group and everyone else.
Directories should be 755, because the execution bit in the directory means that the user can list its contents, since you obviously cannot execute the directory.
-, , php.
, , 755, (rwx, rx, rx), 644 (rw, r, r).
, .
- PHP
- apache ( )
- CGI jail/chroot ( , , , )
- SuExec suPHP (php -)
(1), 664 755 .
/chroot (2), , , 664 755, .
suExec suPHP, php 640 750, . 600 700, apache ( ), , , , -.