File Permissions

Hi
ia ma trying a deploy on a siteground shared hosting. i have created a subfolder to run the test.

public_html/scriptcase

in this subfolder i uploaded the deployed project (SC 8.1). How the permission must be set?

Now are at 777 and i get this error back
[h=1][SIZE=14px]500 - Internal Server Error
I[/SIZE]ncorrect file/directory permissions: Above 755. [SIZE=14px]In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel’s File Manager.[/SIZE][/h] must be alla set to 755? What is the proper setting to make it work and security as well?

Thanks

I have set alla to 755 and it works. Should i leave it this way? is it safe? Should the Public “execute” too instead of just reading?

Hi - I had a simular issue recently and the system engineer advised the following… This resolved and everything worked fine…
Hope this helps [SIZE=14px]
Please correct the permissions on files and folders.[/SIZE]
[SIZE=14px]Folders: 0755
Files: 0644
recursive[/SIZE]

Open a shell (or putty on windows) and log in into your SSH account;
Execute this command at the prompt for folders: find /home/yourusername/public_html/YOURFOLDER/ -type d -exec chmod 755 {} ;
Execute this command at the prompt for files: find /home/yourusername/public_html/YOURFOLDER/ -type f -exec chmod 644 {} ;
Execute this command at the prompt for fix owner (only if the files aren’t if your username): chown username.username /home/sipfpnet/public_html/YOURFOLDER/ -R

Thanks to both of you