Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use the following command to install Apache server:

sudo apt-get install apache2

The installation process seems to have completed without any problems. When I point my browser to localhost:80, the following message comes (which tells the server is properly running)

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Now my problem is, where the server is installed in my machine? Where is the "docroot"? (I need the docroot to deploy new webpages)

I use Ubuntu 12.04 LTS

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Apache stores its VirtualHost files in /etc/apache2/sites-available/. Just after installation, only the default sites are there.

To find out the document root of the default site:

grep DocumentRoot /etc/apache2/sites-available/default

This usually yields the the following docroot (which you are looking for):

DocumentRoot /var/www
share|improve this answer

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.