Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Aug 24 '11 at 10:27

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

2  
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
add comment

1 Answer

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

c:\xampp\htdocs\

to

d:\works\php\
share|improve this answer
add comment

Your Answer

 
discard

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.