How do I set file and directory permissions for Web access?
• All directories leading to it must have o+x permission. • The file itself must have o+r permission for it to be readable from the Web and o+w permission for it to be modifiable from the web. • For file upload from the Web, the target directory to receive the uploaded files must have o+rwx. • If one wishes to allow the web server to list the names of files contained in a directory, then the directory must have o+rx permission.