You need chmod public_html folder become 777, unfortunetly it's can't be done by most shared hosting or own vps. The easy way, put one folder in public_html and chmod it become 777 and then install it. Then just cut and paste the whole script out from folder and put in public_html. Change the setting/config file and remove the folder name.