It could be that the one folder that was giving problems was public_html even though everything inside it had good file permissions.
I agree it’s not a good thing to use 777 at all, it was just for test purposes.
Is there a way to check file permissions without uploading a template each time? So I can troubleshoot this quickly.