0% found this document useful (0 votes)
13 views

Final Project

Uploaded by

Mack Wenberg
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Final Project

Uploaded by

Mack Wenberg
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Juan Carlos Hernandez Puebla and Mack Wenberg

Professor Petit
CSC272
April 5, 2016

Final Project

Purpose

For our final project we built an HTTP server, specifically for HTTP 1.0. We intend for

our Raspberry Pi 2 to deliver a website with the support of Apache web server. Apache web

server allowed us to accept requests from the user’s browser and respond by sending back

HTML documents and files. Since it is a lightweight server, it was great for a testing

environment or to store files. Also, this project displayed the one of many tasks that a Raspberry

Pi 2 can accomplish.

Input

HTTP requests and replies to the server from which the request were made.

Output

HTML document and files that respond to user requests that were made.

Procedures needed and fulfilled

First, we will need to install Apache Web server software on our Raspberry Pi 2. We will

also need to install packages such as, PHP and a library that helps Apache work alongside PHP.

PHP will allow us to display dynamic web pages, not just display static web pages. This

procedure can be done on the command line by typing the following command.

sudo apt-get install apache2 php5 libapache2-mod-php5

Once this finishes, a basic working website named “index.html” should have been generated for

us to work on. To display this website, we need to type in our Raspberry Pi’s local ip address in
its web browser. Now, we can access this html file and modify it by typing the following two

commands.

cd /var/www/

sudo nano index.html

Again we can display this website and look at the changes that took place by simply typing in

our Raspberry Pi’s local ip address in its web browser.

Works Cited

Lauren Orsini. "How To Host A Website With Raspberry Pi - ReadWrite." ReadWrite. N.p., 27 June 2014.
Web. 05 Apr. 2016. <http://readwrite.com/2014/06/27/raspberry-pi-web-server-website-
hosting/>.

"Setting up an Apache Web Server on a Raspberry Pi." Setting up an Apache Web Server on a Raspberry
Pi. N.p., n.d. Web. 05 Apr. 2016. <https://www.raspberrypi.org/documentation/remote-
access/web-server/apache.md>.

Gus. "DIY Raspberry Pi Web Server Tutorial - Pi My Life Up." Pi My Life Up. N.p., 03 Apr. 2015. Web. 05
Apr. 2016. <http://pimylifeup.com/raspberry-pi-web-server/>.

You might also like