You’re not going to write anything outside of your user directory: /home/your_user_name/
I didn’t look at those scripts, but they should be asking you for path info or something.
You also won’t need to set anything to 777 once you get the paths right.
Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.