So I made the mistake of making everything 777 on my local machine. I then zipped everything, uploaded the file via FTP to my server, then used SSH to unzip it. Now everything is 777, which is obviously bad.
I figured I could do something like chmod 644 * -R, then 666 and 777 on the things that needed it. However doing 644 gives me permission denied (755 works, but I assume that is not very safe either, or?)
What should the file permissions of all files (except the 666/777 ones) be? And is there a fast way of setting them?