FAQ master, you'd be proud. Went to the FAQs (although admittedly after posting the question first) and found out that LITERAL SITE is used before chmod. After typing this it worked fine.

Thanks!