give apache write permissions and build postgis in datastore