upadted server code and configured apache