Final Project
Final Project
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.
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.
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/
Again we can display this website and look at the changes that took place by simply typing in
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/>.