Raspberry Pi As Webserver.

137,405

366

16

Introduction: Raspberry Pi As Webserver.

This instructable will only briefly show a way to enable webtraffic to your Raspberry Pi.
In the last step you'll find a guide to add the content.

You'll need:
1 Raspberry Pi
1 Router
1 Micro USB cable
1 Ethernet cable
(and of course an Internet connection)

Step 1: Raspberry Pi As Webserver - Connect to Router.

First you need to connect your Raspberry to your router.

Connect ethernet cable to a free Lan-port. (See picture above).

Connect Micro USB to router or if you have different cable, to your power net.

I'm also using a USB-hub and discstorage...

Step 2: Raspberry Pi As Webserver - Configure Router.

To enable access to your Raspberry Pi you need to enable traffic to it.

Steps:
1. Log in to your router.

2. Check current ip.
Under Attached devices check your current ipaddress for your Pi.

3.Lock current ip to your Raspberry Pi.
Under LAN-setup Add an address reservation for your Pi.

4. Configure asDMZ-machine.
Under WAN-setup Enter current ip and enable as Default DMZ Server.

Step 3: Raspberry Pi As Webserver - Setup Webserver.

Now you'll need to add content to your webserver.

Here you can find a guide to setup and add content to your Raspberry Pi webserver:
https://www.instructables.com/id/Install-a-webserver-on-Raspberry-Pi/

If you are looking for a guide to use ssh to talk to your Pi, look here:
https://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

My Raspberry Webserver can found here:
http://213.65.123.101/qr - a QR Business Card generator.

http://213.65.123.101/whoiam/ - all you want to know about what google knows about you.

Here you can find a guide on how you can use your QR business card:
https://www.instructables.com/id/Digital-business-card-in-your-iPhone-smartphone/

Good luck, and may the Pi be with you!

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    16 Discussions

    0
    script_coded
    script_coded

    6 years ago

    Första svensken jag sett på Instructables! :D

    First sweed I've seen on Instructables! :D

    0
    antares72
    antares72

    Reply 6 years ago on Introduction

    Medlem sedan Feb 27, 2009!

    Gott Nytt År!

    Yay! it works and stuff,

    Can I use this to upload and download files?

    0
    antares72
    antares72

    Reply 6 years ago on Introduction

    Sure, it is small, but it is a server. If you only need to upload and dowload files, perhaps you are looking for a NAS ? But a Raspberry Pi is much more fun! ;)

    0
    emdarcher
    emdarcher

    8 years ago on Introduction

    I like the simplicity of this instructable compared to others about setting up a server on the raspberry pi. It does not involve Mysql or other stuff i have no idea how to do yet. I am still waiting for my raspberry pi, probably getting one for christmas. Also ablut a raspberry pi laptop, check out this ible' https://www.instructables.com/id/LapPi-A-Raspberry-Pi-Netbook/

    0
    diy_bloke
    diy_bloke

    Reply 6 years ago on Introduction

    Don't really need MySql for a webserver, but if you want to present anything more than just stationary html pages, MySQL comes in handy.
    Should really give it a try :-) It is really not that bad.

    0
    antares72
    antares72

    Reply 6 years ago on Introduction

    diy_bloke: Your absolutly right, but perhaps PostgreSQL can be a good choice?

    0
    antares72
    antares72

    Reply 8 years ago on Introduction

    Thanks emdarcher! Warms me in this winter times...

    Your (tip ?) instructable is a dream of mine, as you saw! RPi as a laptop, can it be cooler?!

    Cheers!

    0
    antares72
    antares72

    7 years ago on Introduction

    Yes Oakapi10, that is correct. But could you not use a Wi-Fi adapter then?

    0
    antares72
    antares72

    8 years ago on Introduction

    1 k visits...Thanks folks! But not an awful lot of comments... Is really everything crystal clear?

    0
    antares72
    antares72

    8 years ago on Introduction

    @amandaghassaei - Yes indeed! I see that you have done some cool projects with Arduino... Tip for you (and everybody else=) Why not make a laptop pi? Perhaps a bluetooth keyboard and a 7 or 11 inch screen? A dream of mine.

    sweet! I've got to get going with the raspberry pi, so many awesome projects that could be done!