Combined process for wastewater treatment in communities