Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

i installed the apache, php and mysql. It is initialized and works in the browser - simple file with "it works!".

But now, where is the folder www? i can't find it.

share|improve this question

migrated from Apr 7 '11 at 15:11

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

Which Linux distro? – Aaron Digulla Apr 7 '11 at 15:01
it is a distro based in mandriva (caixa magica 15) – Fel Apr 7 '11 at 15:03
up vote 1 down vote accepted

It will vary depending on the linux distro you are using, a few common places:

  • /var/www
  • /usr/local/apache/htdoc
share|improve this answer
perfect. thanks!! - (7 minutes to accept) – Fel Apr 7 '11 at 15:07

Go to /etc/apache2, and then grep -ri DocumentRoot *, which is likely to output the directory you are looking for.

(This is assuming you installed Apache 2. For apache 1.x, go to /etc/apache instead.)

share|improve this answer

There is no common answer for all Linux distributions out there (yet). The usual approach is to check the docs. But where are they?

My approach for problems like that is to list the installed files. For RedHat based systems, try rpm -ql apache. For Debian based ones, use dpkg -L apache.

That shows you all the files which belong to the package apache which should give you an idea where the files are which the server serves you.

share|improve this answer

/usr/local/apache/htdoc is common. But check your docs.

This link tells you how to find your root doc. -

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.