I am using Ubuntu and want to host a server on it.

What I want to do is

  • Host server on local PC and set up virtual hosts on same PC

  • in virtual host, have “myname.com” opened in browser

1 Answer 1


Here is a walkthrough for LAMP installation for ubuntu. You of course have more options than use Apache2 for example some light-httpd server will be sufficient.

Depending on your needs you can just install Apache2 or wole bundle. https://help.ubuntu.com/community/ApacheMySQLPHP

Here is article from "Etel Sverdlov" about how to set and configure Apache virtual hosts. https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .