Change chmod to 777 and change db settings