I am developing web applications with Ubuntu Linux, MySQL and PHP.
I put my files in the
/var/www/some_web_project/ directory. I have problems with permissions, for example when I want to output image in my web application by
<img src="images/some.jpg"/>, it does not show me images until I change permissions of the folder. Usually I change it to
777. But I do not think this is the right from a security perspective
What should the correct permission mode be?