How to set permissions on particular folder

Most of software that need to upload files, comes with instruction that ask users to set 777 permissions to upload folder. This is absolutely not needed in mod-suphp . in mod suphp when a PHP file is executed in 777 folder, it will give internal server error.

permissions

To set correct permissions on all folders within client directory, we do following.

[info]

Cd /home/user/pubic_html/

find ./ -type d -print0 | xargs -0 chmod 0755

[/info]