Fixed permissions error with public_html dir. Added root/sudo check.