[eluser]Unknown[/eluser]
I am putting a site online this weekend and must admit that I am somewhat anxious about security. I check all my user input thoroughly, escape all variables for SQL etcetera, but there is one thing which I just realized I don't know:
How do I set the file system access (chmod)?
I want it as tight as possible but obviously not tighter or the whole thing won't work.
My folder setup is like this:
/
/ci-app
...(subfolders)
/ci-system
/ci-system/cache
/ci-system/logs
... (more subfolders)
/www
/www/css
/www/js
/www/img
/www/upload
I really hope someone can help me out here 'cause a couple of hours of googling and looking on forums haven't given me the answer. I know it's basic stuff and possibly not 100% related to CodeIgniter, but I feel it would be something anyone developing a CI application (or any web application really) should know - that includes myself.
Thanks again for anyone that can help me out here.