Installing Apache. To install Apache, install the latest meta-package apache2 by running: sudo apt update sudo apt install apache2. ... Creating Your Own Website. By default, Apache comes with a basic site (the one that we saw in the previous step) enabled. ... Setting up the VirtualHost Configuration File.