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.

Hey! Nice and easy to follow tutorial!
But even tho I double checked every step, I still cant reach my content.

Calling the Pi's Local IP through an other device's browser displays the
index.html in the /var/www folder properly, but using either the global
ip or the domain results in a network timeout error.

- noip2 process is running (pid, current global ip and noip-domain is shown)

- 000-defaults file is edited ("None" to "ALL" - also checked "All")

- No-IP Website show pi's currend global IP and No-IP Domain aligned

- Port-Forward for Ports 80 and 21 for the Pi's local IP are enabled

Any further advice?!
Thanks in advance
Best regards and keep up the intuitive tutorials

Running Raspian tho...

I am having the same problem I have gone through another tutorial too: which uses PageKite rather than No-ip but pagekite is really expensive! Please let me know if you find a solution!

Do you think it may be to do with port forwarding?

Jup I contacted my IPS.. It's because im using global IPv6 adresses with Dual-Stack Lite. Therefore my devices do not get a global IPv4 adress to enable Port Forwarding... They offered me to activate the IPv4 (real Dual-Stack) for an additioal monthly fee...

Isn't there any way to achieve the same goal with IPv6 enabled on the Raspberry?! (Except Portmapping expensive services)

NicolasT22 days ago

Hi! Thanks for the tutorial, but I am still running into a few hurdles. I followed every step. Just to make sure, I am supposed to upload my index.html file to /var/www right? I do have a PID running, but if I try to go to my website, it only shows "400 bad request". Do you think you could help me?

Yeah I have exactly the same issue!

Excellent tutorial! Now i would like to get some security to prevent some hacking activity. Where i can find some info about this? I thinks is installing SSL or something like that. Do u know any info about this? Thanks!

This is a very clear, complete, and easy to understand tutorial. Excellent work!

Hey can u plz send me that tutorial? Am not able to get it.

e-mail :

sajingeo (author)  Doug Paradis10 months ago

thank you...

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

Would there be anyway for me to use a domain name that I have already bought on GoDaddy?

sajingeo (author)  cheesecurd18995 months ago

Yes you should be able to do it, by editing your CNAME from your control panel and setting it to your HOME IP / no-ip domain name

rtdubbs sajingeo4 months ago

you’re referring to GoDaddy's admin area (or any other provider), correct?

rtdubbs4 months ago

completed without a hitch. fantastic! thanks!

Veziax7 months ago

I've done every step but when I type in my domain on Firefox it cannot connect... What's the problem?

sajingeo (author)  Veziax7 months ago

hi, is it working when you type in the IP address in the browser? is the Pi on the same subnet as your PC? did you edit the /etc/apache2/sites-enabled/000-default to allow all IPs

Veziax sajingeo7 months ago

My /etc/apache2/sites-enabled/000-default allows all IPs (I changed "AllowOverride None" -to "AllowOverride ALL".) but it doesn't work.I don't wich subnet on my Pi is good so here's a pic

Veziax Veziax7 months ago

I dont know wich subnet*

cyiangou21 year 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
gbrand cyiangou29 months ago
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)  cyiangou210 months ago

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

matthew99997 made it!10 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)  matthew9999710 months ago

thank you...

donmatito1 year 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)  donmatito10 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)  amandaghassaei2 years 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.
astroboy9072 years ago
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)  astroboy9072 years ago
u should get one....maybe i will try solar for the next instructable....
sajingeo (author) 2 years ago
Thanks for the feedback...