I am sure this has been asked before a number of times but I could not get a decent guide to file/folder permissions for Linux.
What I want is to setup an nginx/apache server with PHP and an FTP server like vsftpd. The problems I usually get is the web server can not read a file when uploaded through the FTP account or I can't upload things to the server at all. My PHP script also needs to run a command line tool and hence would require proper permissions to be run through the server. I got around all these by trying chmodding or chowning but I still don't feel confident about having a secure setup.
Is there any tutorial/book available which can help me learn the concepts properly in a practical way?