apache tutorial - [Ubuntu] Simple Hello World Example in Apache - apache - apache web server - apache server - apache2

[Ubuntu] Simple Hello World Example in Apache

This example will guide you through setting up a back end serving an a Hello World HTML page.

Installing Requirements

  • sudo apt-get install apache2

Setting up the HTML

Apache files live in /var/www/html/. Make sure you're in your root directory first, cd, then cd /var/www/html/.

This html directory is where all your website files will live. Lets quickly make a simple Hello World file.

Using your favorite text editor, type the following in

<!DOCTYPE html>
    <title>Hello World!</title>
    <h1>Hello World!</h1>

Save this file as index.html in the current directory and you're set to go!

Visiting Your Webpage

To visit the page you just created, in your browser of choice, go to localhost. If that doesn't work, try You should see "Hello World!" as a h1. You're done!

Related Searches to [Ubuntu] Simple Hello World Example in Apache

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.