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

I want to make a virtual host using XAMPP 1.7.7 under Ubuntu 12.04, I followed an instruction to add a line of virtual hostname in /opt/lampp/etc/hosts. But when I search the file, the file does not exists. When I create a new one, it's still not working.

Is virtual hosts configuration has changed in some latest XAMPP versions?

share|improve this question
Wild guess: Did you mix up the etc folder in the xamp folder and the one in root (/etc)? – André Stannek Jan 14 '13 at 6:33
Why don't you use standard LAMP stack in Ubuntu, isn't it more convenient and configurable. ? – Vinit Kumar Jan 14 '13 at 8:23
When you downloaded the package, what program did you choose to unpack it? Do you know the folder where the software was unpacked? Are there any files in /opt and /opt/lampp? – qbi Jan 14 '13 at 8:27

The tutorial tells you to edit /etc/hosts and not /opt/lampp/etc/hosts.

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.