Allowing permission on folders in php server code example
Example: what Permissions do I need for include folder on php
Directories must have execute permissions to be usable;
Usually this is 0755.
PHP scripts run via mod_php are not executed but rather read;
0644 will suffice for this.