1

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.

2
  • Which Linux distro? Commented Apr 7, 2011 at 15:01
  • it is a distro based in mandriva (caixa magica 15) Commented Apr 7, 2011 at 15:03

4 Answers 4

1

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

  • /var/www
  • /usr/local/apache/htdoc
0
0

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.)

0

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.

0

/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/

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.