PHP problem

hi when i uninstalled my apache n wanted to change some configuration it uninstalled n reinstalled but gave a msg document root was not closed.how n from where i can close it to make changes.