How to install Apache web server on Debian/Ubuntu

apache is a popular open source web server.

1. Update Repository

apt update

2. Install Apache

apt install apache2

3. What you need to know

You now have a web server and can access your default homepage by entering the IP address for your server (and/or any domain pointng to it) in your web browser's address bar.

Default Web Directory

You can store the files for your default web site in "/var/www/html"--in that directory you will find your default index.html (which can be safely deleted).

Default Configuration File

Your web site's server configuration file can be found at "/etc/apache2/sites-enabled/000-default.conf".