Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sorry for the easy question.. I installed XAMPP. When i go to localhost in browser, the directory called "c:\xampp\htdocs\" is opening. I want to change the address of localhost to something like "d:\works\php\" Which file/part should i edit? Thank you

share|improve this question

migrated from Aug 24 '11 at 10:27

This question came from our site for professional and enthusiast programmers.

Find httpd.conf and look for DocumentRoot – N.B. Aug 24 '11 at 10:24
Thank you very much. – trante Aug 24 '11 at 10:26

You need to change the DocumentRoot setting in XAMPP\apache\conf\httpd.conf:



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.