You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

71 lines
3.5 KiB

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My Learning Website</title>
<link href="/styles/styles.css" rel="stylesheet" type="text/css">
<link href="/raspberrypi/styles/styles.css" rel="stylesheet" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="banner">
<h1 class="courselink">Raspberry Pi Setup</h1>
<h2 class="lecturer">Personal Project</h2>
<h2 class="episodetitle">Getting Started</h2>
</div>
<article>
<h2 class="sectiontitle">Installing Apache</h2>
<p>A very basic installation of Apache can be done very quickly and easily if you just want to get your website up and running as quickly as possible. Before we install it, we will make sure our system is up to date with the following commands.</p>
<pre class="inset">
$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get dist-upgrade -y</pre>
<p>We can then install apache with the command</p>
<pre class="inset">
sudo apt install apache2 -y</pre>
<p>I have skipped some steps here, in that my IP address and domain are already set up and I have configured port forwarding to point to the IP address of my Rapsberry Pi so I can now go to the domain (osztromok.com) and see the apache default page which shows that apache is installed and working correctly.</p>
<p>The default location for this page is</p>
<pre class="inset">
/var/www/html</pre>
<p>All that is required now to get the website up and running is to delete the default apache page and then copy the files for my site over to this folder. The new website is now ready to go and can be viewed in any standard browser.</p>
<h3 class="subsectiontitle">Configuring Apache</h3>
<p>For more information on configuring Apache please see my notes on the LinkedIn course <a href="https://www.linkedin.com/learning/apache-web-server-administration">Apache Web Server: Administration</a> which can be found <a href="http://osztromok.com/webdevelopment/apachewebserveradmin/configuring.html">here</a>.</p>
<p>For reference, the official documentation for Apache is at <a href="http://httpd.apache.org/docs/current/configuring.html">apache.org</a>.</p>
<p>The main configuration for Apache is in</p>
<pre class="inset">
/etc/apache2/apache2.conf</pre>
<p>We will start off by making some changes to the configuration in order to provide better security.</p>
</article>
<div class="btngroup">
<button class="button" onclick="window.location.href='gettingstarted.html';">
Getting Started
</button>
<button class="button" onclick="window.location.href='usefulcommands.html';">
Useful Commands
</button>
<button class="button" onclick="window.location.href='usefullinks.html';">
Useful Links
</button>
<button class="button" onclick="window.location.href='setup.html'">
Course Contents
</button>
<button class="button" onclick="window.location.href='/linux/linux.html'">
Raspberry Pi Page
</button>
<button class="button" onclick="window.location.href='/index.html'">
Home
</button>
</div>
</body>
</html>