Linux Webserver using Apache

To get started with your own local, or public webserver you must install apache, this can be done with the following commands:
Enter terminal using CTRL+ALT+T
Enter the following commands


$ su , enter password
$ aptitude install apache2

When finished you can visit your new host at http://localhost/ or http://192.168.1.2

The webserver searches for websites using the directory /var/www/ make a new website of your liking, example:

My website:

<!DOCTYPE HTML>
<html>
<head>
   <title>My website</title>
</head>
<body>
   Welcome to my website!!
</body>
</html>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s