Host your website on Raspberry pi

Raspberry pi is a low cost development board by the raspberry foundation,for this tutorial i am using the distro provided by adafruit that can be found at all you need to do is download the image and use WIN32 disk to burn the image on to the SD card. This tutorial is very different from rest and focuses on hosting a site from raspberry pi and make it accessible ONLINE (from anywhere in the world).
Remove these adsRemove these ads by Signing Up

Step 1: Connect via SSH

Now connect your raspberry pi to home router using a Ethernet cable. the ada-fruit image comes with SSH enabled so you can connect via SSH immediately.

now you should try to open a SSH session via putty to raspberrypi.local or the speccific IP address( if you have ur HDMI connected it should be there on you screen, or go to ur router config page(usually and check for raspberry pi under DHCP). you can log in to the raspberry pi with user name :pi and password :raspberry.

Step 2: Setting up you rasberry pi

once you have a new installation there are a few things you should do to get things going, that includes expanding your root file system to fit the entire memory card and changing the user name and pasword. executing
sudo raspi-config
will take to to the config page where you can configure your PI.

cyiangou29 months ago
hey, I am trying to run adafruit on my raspbbery but this is not respond.
Actually I download adafruit and used win32disk to write in in my SD card.
Then I put SD card in raspberry pi but its not respond. Why?
Thank you very much please help me
I had the same problem. It is the ram on the Pi. The adafruit image requires a Pi that does not have HYNIX ram. You can try to simply run any debian image for the Pi, since it has the enable SSH option during first startup and setup. Worked for me.
sajingeo (author)  cyiangou22 months ago

try another card, or check if the Lock swirch is enabled on the card

matthew99997 made it!2 months ago

Clear & concise instructions. I've previously tried to get my Raspberry Pi set up as a web server by following instructions I've found in a book I purchased and a different web site, but none ever worked. This one works great, thanks!

sajingeo (author)  matthew999972 months ago

thank you...

This is a very clear, complete, and easy to understand tutorial. Excellent work!
sajingeo (author)  Doug Paradis2 months ago

thank you...

Hi all, now I start Raspberry Pi collocation in heart of Europe, more info find here: Enjoy !

donmatito10 months ago
This is such a great tutorial !! Thank you a lot. Furthermore, I have added another port redirection to my server (weird number like 9562 to 22) so that I can also log in SSH to my raspi. So great !
sajingeo (author)  donmatito2 months ago

thats a good idea!!

nice, are there restrictions on the types of pages you can host? basic html? or is css/javascript/etc ok too?
sajingeo (author)  amandaghassaei1 year ago
u can Host most .php and HTML(and CSS) files, but if you are using functionality like cgi- , or curl you will have to add those modules too, to your installation. Yes basic java should work since it runs off your browser.
Nice site, managed to figure out the link to it :) Possibly the greenest server ever? Lol you should solar power it and say the entire site is powered from 100% green energy.

Maybe its time to get me a Raspberry Pi... I love pi :)
sajingeo (author)  astroboy9071 year ago
u should get one....maybe i will try solar for the next instructable....
sajingeo (author) 1 year ago
Thanks for the feedback...

Get More Out of Instructables

Already have an Account?


PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!