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.

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 stackoverflow.com 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
add comment

4 Answers

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

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

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

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

http://httpd.apache.org/docs/1.3/misc/tutorials.html

This link tells you how to find your root doc. - http://www.cyberciti.biz/faq/howto-find-unix-linux-apache-documentroot/

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.