For .php, file permissions need to be 644 and and set your directories to 755. Otherwise you will see typically server 500 errors with php scripts or even server 403 errors with WordPress.