Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Okay, I have used XAMPP and Apache on Windows before, but I have never tried it on Ubuntu... On top of that, I am using Ubuntu Server with 12.04 with CLI, no desktop environment or GUI.

I believe using X11 or a GUI opens up various other vulnerabilities and exploits, and I am working on a little project with the server- I want to make it public, not just a local server...

Back to the main problem- I have no idea where the directories are on LAMP on Ubuntu v12.04. I searched but can not find myself.

Additionally, does anyone have an idea where it is for Lighttpd? This is just a bonus question, I am more worried about the LAMP directories, but I may experiment with lighttpd instead later down the line.

share|improve this question
up vote 2 down vote accepted

I think you can find that and more in the directory /etc/apache2/sites-available/, usually in the file default unless it's been renamed somewhere or you have more than one site.

This file should have an entry something like

<VirtualHost *:80>
    DocumentRoot /var/www

In the above case, the DocumentRoot corresponds to the the web root directory.

In this file, you can create any number of virtual hosts for various sites you might want to define.

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.