Files and folder permission

Hi to everybody!
I have some problem with icons and when i upload files. I think it’s a problem with permission for files and folder when i installed scriptcase. My question is: what permission rules i have to used?
For example: in my scriptcase ambient i have this permission:

  • scriptcase folder 777
  • config.php cws.php diagnosis.php and test.php 644
  • apps folders 777 or 755
  • apps files 644

In my cloud when i upload apps i have these permissions:

  • apps folders 755
  • apps files 755
  • _lib 755
  • tmp folder in _lib folder 777

What permissions are correct??

Thanks a lot and regards!

Check this:
http://support.scriptcase.net/index.php?/Knowledgebase/Article/View/444/0/fixing-scriptcase-permission-on-your-host