tracking domain issue with folder permission


Active Member

my website is working fine. I have added a tracking domain and when i try to open website from server IP domain like
As this is suggested by MW to have tracking domains works.
i got error in two folders permissions
is not valid. Please make sure it is a directory writable by the Web server process.

is invalid. Please make sure the directory exists and is writable by the Web server process.

Permission for both Folders are 775

when i change permission to 777 for both folders, then it start working.
Is this secure to have 777 permission on above folders (apps/common/runtime & assets/cache ) ?
If not how to solve it?

That's the way it should be, those folders have to be writable by the web server, so 777 is fine.