How to Make a Raspberry Pi Web Server

Similar documents
Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack!

Installing OptiRain Open on Raspbian

Communication protocols and services

OptiRain Open 2 Installation Guide for LInux. This guide provides general instructions for installing OptiRain Open 2 on a Linux based server.

Raspberry Pi Tutorial 2

INTRODUCTION. To avoid the PHP7 conflicts use this OS image: STEP 1 - Parts List:

Installing LAMP on Ubuntu and (Lucid Lynx, Maverick Meerkat)

PiCloud. Building owncloud on a Raspberry PI

XLink Kai Raspberry Pi Beginners Tutorial

Buzztouch Server 2.0 with Amazon EC2

Installing MediaWiki using VirtualBox

Experiments 1 How to set up Raspberry Pi B+ The little computer you can cook into DIY tech projects

RETROPIE INSTALLATION GUIDE

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

We want to install putty, an ssh client on the laptops. In the web browser goto:

Features of Raspberry Pi 3 Model B

Apache Manual Install Ubuntu Php Mysql. Phpmyadmin No >>>CLICK HERE<<<

Adafruit's Raspberry Pi Lesson 6. Using SSH

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Preparing SD card for Pi

ViMP 2.0. Installation Guide. Verfasser: ViMP GmbH

L.A.M.P. Stack Part I

Digital Free Library. Created by Kirby Griese. Last updated on :35:15 PM UTC

Building a standalone access point using a Raspberry Pi Zero W

OpenEMR INSTALLATION AND UPGRADE Quick guide

Cacti monitoring tool

SETTING UP 3 WORDPRESS SITES ON APACHE AND UBUNTU BY RAMI

How To Start Mysql Use Linux Command Line Client In Xampp

Phpmyadmin Ubuntu 10.04

ELE409 SPRING2018 LAB0

Manual to install experimental firmware on a TYTERA MD380

Embedded Linux. A Tour inside ARM's Kernel

Davide Cavaliere 18 th February 2017

Installation guide. Step1. Install the OS for Raspberry Pi 3. Go to to download Raspbian to the PC.

Spreedbox Getting Started Guide

7inch HDMI Display-B. User Manual. product description

How To Install Flash Player In Ubuntu Using Terminal

Remote GUI access to a Linux computer using Tightvnc

Software Installation Manual

KODO Controller. Remote Access. Hutech Corporation Atlantic Ocean Dr., Unit B-17. Lake Forest, CA

Step 1 - Install Apache and PostgreSQL

7inch HDMI LCD (H) User Manual

Guide to your Plug Computer

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes

Wallet Installation Guide for Staking on Raspberry PI

Bitnami ez Publish for Huawei Enterprise Cloud

Linux Essentials Objectives Topics:

Phpmyadmin Windows Xp

2. Installing OpenBiblio 1.0 on a Windows computer

Install Apache Manually Win7 7 Php Mysql Phpmyadmin Ubuntu Server

Ubuntu Practice and Configuration Post Installation Exercises interlab at AIT Bangkok, Thailand

Configure router. 26. Start AirPort Utility (located in the Utilities folder). The AirPort Utility window show a component diagram:

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Installing Open Project on Ubuntu AWS with Apache and Postgesql

5 inch HDMI Display-B

Bitnami Coppermine for Huawei Enterprise Cloud

شرکت توسعه ارتباطات پردیس پارس. owncloud. The last file sharing platform you'll ever need

Bitnami TestLink for Huawei Enterprise Cloud

SETUP INSTRUCTIONS. Eynio Server Setup Instruction

IoTivity Development on ARTIK 530s

3.2 / 3.5 Touch-Display

Linux Kung-Fu. James Droste UBNetDef Fall 2016

D, E I, J, K. Generalized Regular Expression Parser (GREP), 110 Generic 105 key (Intl) PC, 29 git command, 242

FINAL PROJECT: MUSIC SERVER

Getting started with Raspberry Pi (and WebIoPi framework)

If you re the administrator on any network,

SIMICART USER GUIDE SERIES. SimiCart Install SimiConnector

Bitnami Dolibarr for Huawei Enterprise Cloud

Linux Kung Fu. Ross Ventresca UBNetDef, Fall 2017

Linux Postfix Smtp (mail Server) Ssl Certificate Installation And Configuration

EASYLAMP UBUNTU V1.0 DOCUMENT OWNER: OUDHUIS, JONATHAN INGRAM MICRO CLOUD EUROPE

Bitnami Piwik for Huawei Enterprise Cloud

Setting up VPS on Ovh public cloud and installing lamp server on Ubuntu instance

Bitnami Ruby for Huawei Enterprise Cloud

5.5" HDMI OLED-Display with Capacitive Touchscreen V1.0 SKU:DFR0524

Adafruit PiUART - USB Console and Power Add-on for Raspberry Pi

Setting up a Chaincoin Masternode

Bitnami Pimcore for Huawei Enterprise Cloud

Raspberry Pi Setup Tutorial

CYVA Research. Raspberry Pi MQTT Configuration

Observium Enable your new virtual host 4

Lab Authentication, Authorization, and Accounting

Apache MySQL PHP PHPAdmin Install

Manual of ET-LCD SW HAT

Install vsftpd Sebagai FTP Server dengan Virtual Account di Debian 8 (Jessie)

Bitnami ProcessMaker Community Edition for Huawei Enterprise Cloud

Access Control System ACCO NET Installation Manual

BeagleBone Black: Installing Operating Systems

Manually Password Protect Directories Apache Ubuntu

Run an X-Carve CNC Machine Wirelessly with a Raspberry Pi

High Voltage Module Raspberry Pi Documentation Page 1

Orchid Fusion VMS Installation Guide

Step By Step Ubuntu (Precise) LAMP Server Setup

BeagleBone Black: Installing Operating Systems

Kollaborate Server. Installation Guide

You will need to know the IP address or the hostname of the pi (as discussed above) to continue and login to your pi via putty over Ethernet.

Bitnami DokuWiki for Huawei Enterprise Cloud

10.1inch HDMI LCD (B) User Manual

Managing Xen With Xen-Tools, Xen-Shell, And Argo

Raspberry Pi Class Ed 299. Mike Davis Truman College 5/26/2015

Transcription:

2 Ways to Make a Raspberry Pi Web Server - wikihow http://www.wikihow.com/make-a-raspberry-pi-web-server of 5 08/5/203 :3 AM How to Make a Raspberry Pi Web Server If you are looking for a way to make a cheap web server, primarily to be used as a testing environment or to store files, then the Raspberry Pi is perfect for you. What is a Raspberry Pi? It is a new inexpensive mini computer, perfect for basic functions. This guide will show you how to take a new Raspberry Pi and turn it in to a web server. Please note that for this article, we will be working in Windows for parts of it. This is a Raspberry Pi Steps Start the Raspberry Pi Operating System 2 3 4 Obtain a copy of the Raspberry Pi OS (Operating System) from the link in the sources section. There are a few different distributions available, but for this article, we will be using the "Debian Squeeze" version. Burn the image to the SD card. To do this, we need a tool called the Win 32 Disc Imager. A link for this is also available in the sources section. Now open the tool, navigate to the drive letter that your SD card is in, select the location of the Raspberry Pi OS image, and select burn. Once done burning, you can place the SD card into your Raspberry Pi, then plug in the rest of the cords, being sure to plug in the mini USB last. Once Debian finishes loading, you will need to log in. The default username is "pi", and the default password is "raspberry". Set Up the Raspberry Pi Because you are running a fresh version of Debian, you will need to do some housecleaning, updating, and installing. First, we are going to update the clock, update our sources, then upgrade any pre-installed packages. Use the following code to do this: sudo dpkg-reconfigure tzdata sudo apt-get update sudo apt-get upgrade

2 Ways to Make a Raspberry Pi Web Server - wikihow http://www.wikihow.com/make-a-raspberry-pi-web-server 2 of 5 08/5/203 :3 AM Keep the Firmware Up To Date Next, we want to install Hexxeh's RPI update tool to help keep Raspberry Pi up to date. To do this, run: sudo apt-get install ca-certificates sudo apt-get install git-core sudo wget http://goo.gl/bofj -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update sudo rpi-update sudo shutdown -r now Set Up SSH Now, we are going to set up SSH so that we can do everything else from a different computer. To do this, first note the I.P. address of the Raspberry Pi, then run the following: Newer Packages of the Debian no longer need you to do this section. sudo mv /boot/boot_enable_ssh.rc /boot/boot.rc sudo shutdown -r now You can now unplug the cords for your USB keyboard and your monitor. These are no longer necessary, as everything else will be done over SSH. Finish the Set Up 2 Open up your SSH client and connect to your Raspberry Pi's I.P. address. For security reasons, you should change the password. Do this by running: sudo passwd pi You will then be prompted to enter your password, then enter it again to verify it. Installing The Server Here, you have two choices, Apache or Cherokee. Apache is definitely more popular, but Cherokee is much lighter. This will describe how to install them both. Apache To install Apache and PHP, execute the following commands: sudo apt-get install apache2 php5 libapache2-mod-php5 If you get an installation error, run:

2 Ways to Make a Raspberry Pi Web Server - wikihow http://www.wikihow.com/make-a-raspberry-pi-web-server 3 of 5 08/5/203 :3 AM sudo groupadd www-data sudo usermod -g www-data www-data Now restart the service: sudo service apache2 restart Now enter the I.P. address of your Raspberry Pi into your web browser, and you should see a simple page that says "It Works!" Cherokee If you want to install Cherokee, because Apache is too heavy for you, run the following commands: sudo apt-get install cherokee If you get an installation error, run the following command, then try to install Cherokee again. sudo addgroup www-data Install PHP: sudo apt-get install php5-cgi Now, to fix any bugs, edit the php.ini file and remove the semicolon in front of cgi.fix_pathinfo=. Now restart Cherokee by executing: /etc/init.d/cherokee restart Install MySQL To install MySQL, install a few packages with the following command: sudo apt-get install mysql-server mysql-client php5-mysql Install FTP We will now install FTP to allow transferring files to and from your Raspberry Pi. This has only been tested with the Apache install.

2 Ways to Make a Raspberry Pi Web Server - wikihow http://www.wikihow.com/make-a-raspberry-pi-web-server 4 of 5 08/5/203 :3 AM Take ownership of the web root: sudo chown -R pi /var/www Next, install vsftpd: sudo apt-get install vsftpd Configure FTP Edit your vsftpd.conf file, usually located at /etc/vsftpd.conf. For example use 'sudo nano /etc/vsftpd.conf'. Change anonymous_enable=yes to anonymous_enable=no, Uncomment local_enable=yes and write_enable=yes, then go to the bottom of the file and add force_dot_files=yes. Now save and exit the file. Now restart vsftpd: sudo service vsftpd restart The Finishing Touches Run: sudo passwd root Log out of your SSH session, and log back in as root. (You MUST do this) Edit the password configuration file: nano /etc/passwd Find the line pi:x;000:000:raspberry Pi User,,,:home/pi:/bin/bash and add a # sign to the beginning of it. Now save and exit the file. Add the user pi as a mod. usermod -d /var/www pi Now exit your SSH session, and log back in as pi, then grant mod rights to root. sudo usermod -L root Now exit. Your server should be up and running. You can transfer files through FTP by using

2 Ways to Make a Raspberry Pi Web Server - wikihow http://www.wikihow.com/make-a-raspberry-pi-web-server 5 of 5 08/5/203 :3 AM your servers I.P., and connecting through port 2. Tips If you get an error message saying: "wget: command not found", run "sudo apt-get install wget" Things You'll Need A Raspberry Pi (model B). A blank SD card that is at least four gigabytes. A micro USB cable (for power). A network cable with access to the internet. A composite video or HDMI cable. A USB keyboard. Sources and Citations http://www.raspberrypi.org/downloads - Raspberry Pi OS download https://launchpad.net/win32-image-writer - Win 32 Disc Imager download