php permission directory for upload code example
Example 1: file upload permission in php
chmod -Rf 777 FOLDER_PATH
Example 2: 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.