I have a server setup with Ubuntu, Apache2 and VSFTPD. We virtual host several sites on this machine. Typically, I use the same process to set up the new sites, but the default permissions for some are different than the others.
For some sites, I can upload new files and directories through FTP and they receive 644 and 755 permissions respectively. Just how I want them by default.
For other sites, they receive 0 or 600 as the default new file permission. I have to manually change each file to 644. This is slow and a pain to do.
I'm by no means an expert, but I've checked the permissions and the ownership and it all seems to be the same. What am I missing?
PS - I'm sure I left out some relevant information. Please let me know what else I need to provide.