Hosting a website on a raspberry pi
Hosting a website on a raspberry pi
Hosting a website on a raspberry pi
t=7762
Forums
Foundation
• Forum FAQ
• About
◦ About us
◦ Contact us
◦ Documentation
◦ Trademark rules
Search
• Login
• Register
•
◦
◦ Unanswered topics
◦ Active topics
◦
◦ Forum FAQ
◦ About
▪ About us
▪ Contact us
▪ Documentation
▪ Trademark rules
• Board index Projects Networking and servers
• Print view
37 posts
• 1
•2
blobert123
•
Posts: 13
Joined: Wed May 23, 2012 6:48 pm
I was wondering if after setting a pi up as a server i could then host my / my parents website ? Is this possible and are
1 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
there any programs to (easily ) make a website on linux ? (my mum needs to be able to update her website regularly ) she
currently uses notepad and html !! so something graphical and simple would be good thanks
mpettitt
Posts: 8
Joined: Sat Jun 02, 2012 10:09 pm
You could do this, but it would require a decent internet connection speed (don't forget that most connections are faster
for downloads than uploads, and web servers mostly upload data), and you'd have to leave the Pi running as a server most
of the time, rather than playing with it, which seems a far worse penalty!
What you're probably after is a basic CMS, which will allow updating from a web browser. Popular choices for these
include Wordpress and Drupal. In order to run one of these, you'll need to set up a http server on your Pi (Apache is the
internet's most popular one, but something a bit less resource intensive such as nginx might be better on the Pi), a
database server (MySQL is the popular choice, SQLite would probably be a good Pi choice, if the CMS you use supports it)
and a scripting language (PHP, Python, Perl...). See http://www.raspberrypi.org/phpBB3/viewt ... =27&t=7457 (http://
www.raspberrypi.org/phpBB3/viewtopic.php?f=27&t=7457) for some options!
jbeale
Posts: 4003
Joined: Tue Nov 22, 2011 11:51 pm
The Pi is good for low complexity, low-bandwidth websites. If you're currently authoring in notepad, it's likely you have a
low-complexity site! As mpettitt pointed out, it will be limited by whatever outgoing bandwidth you connect to it.
I know some ISPs offer bargains for a COLO (co-located onsite) server if it uses less power than normal. The Pi at about 2
watts is very efficient!
SN
2 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
All of that I have sat behind http://www.bryxx.com (http://www.bryxx.com) a simple one page demo site (at the
moment)
FOOTNOTE - and if you want to see where people are coming from and how often to your site, sign up for Google
Analytics - fantastic solution
Right now 23:21 on 7th June there's someone from Ireland and Norway looking at my site
sharix
Posts: 200
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia
can you post some instructions SN? I tried to install lighttpd but I got this error: http://redmine.lighttpd.net/boards/2/
topics/5179 (http://redmine.lighttpd.net/boards/2/topics/5179)
SN
Posts: 1014
Joined: Mon Feb 13, 2012 8:06 pm
Location: Romiley, UK
3 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
Code:
I believe (I hacked it differently I think) the cleanest thing to do is that you need to create a www-data group (use
addgroup command) and www-data user (use adduser command) in that group BEFORE doing an apt-get install
lighttpd
Should all be OK then.
sharix
Posts: 200
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia
sharix
Posts: 200
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia
RussIT
Posts: 28
Joined: Thu Jan 05, 2012 11:34 am
4 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
pfyon
Posts: 1
Joined: Sun Jun 10, 2012 3:05 am
I actually moved my blog over to my Raspberry Pi, primarily so people can see the performance of it running a webserver.
It's running wordpress on lighttpd with the mysql database running on the Raspberry Pi itself.
http://peterfyon.homeunix.com (http://peterfyon.homeunix.com)
sharix
Posts: 200
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia
Okay I solved the php problems by simply changing all .html extensions to .php
marcelp1
Posts: 132
Joined: Mon Jun 11, 2012 8:41 pm
SN wrote:
5 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
Code:
I believe (I hacked it differently I think) the cleanest thing to do is that you need to create a www-data group (use
addgroup command) and www-data user (use adduser command) in that group BEFORE doing an apt-get install
lighttpd
Should all be OK then.
Hi all,
Have followed the install process and something gone wrong this is what I get if I try to
remove it in order to reinstall lighttpd from here
http://www.debian.org/doc/manuals/debia ... -dpkg.html (http://www.debian.org/doc/manuals/debian-tutorial/ch-
dpkg.html)
6 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
lighttpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
RicardoRix
Posts: 1
Joined: Sat Jun 02, 2012 6:28 pm
marcelp1
Posts: 132
Joined: Mon Jun 11, 2012 8:41 pm
marcelp1 wrote:
7 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
SN wrote:
Code:
I believe (I hacked it differently I think) the cleanest thing to do is that you need to create a www-data group
(use addgroup command) and www-data user (use adduser command) in that group BEFORE doing an apt-get
install lighttpd
Should all be OK then.
Hi all,
Have followed the install process and something gone wrong this is what I get if I try to
remove it in order to reinstall lighttpd from here
http://www.debian.org/doc/manuals/debia ... -dpkg.html (http://www.debian.org/doc/manuals/debian-tutorial/ch-
dpkg.html)
8 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
LetHopeItsSnowing
Posts: 357
Joined: Sat May 26, 2012 6:40 am
Location: UK
9 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
1 quick comment, if you ISP doesnt provide you with a static IP addres (mine doesnt) you could consider using a dynamic
dns service like www.no-ip.com (http://www.no-ip.com).
I set this up using my Pi to host a podcast and it works a treat, see http://stuffaboutcode.blogspot.co.uk/20 ... using.html
(http://stuffaboutcode.blogspot.co.uk/2012/06/raspberry-pi-access-from-internet-using.html) for how to get no-ip
running and installing the client.
LHIS
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"
Jock in a Frock
Posts: 72
Joined: Thu Jan 12, 2012 6:39 pm
LetHopeItsSnowing wrote:
1 quick comment, if you ISP doesnt provide you with a static IP addres (mine doesnt) you could consider using a
dynamic dns service like http://www.no-ip.com (http://www.no-ip.com).
I set this up using my Pi to host a podcast and it works a treat, see http://stuffaboutcode.blogspot.co.uk/20 ...
using.html (http://stuffaboutcode.blogspot.co.uk/2012/06/raspberry-pi-access-from-internet-using.html) for how to
get no-ip running and installing the client.
LHIS
If using a Dynamic DNS service, check out your router, many have an option to subscribe to a DynDNS service, so the
updating is handled by your router, not your Pi (or another client on your LAN). One less thing to worry about.
LetHopeItsSnowing
Posts: 357
Joined: Sat May 26, 2012 6:40 am
Location: UK
10 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
LetHopeItsSnowing wrote:
1 quick comment, if you ISP doesnt provide you with a static IP addres (mine doesnt) you could consider using a
dynamic dns service like http://www.no-ip.com (http://www.no-ip.com).
I set this up using my Pi to host a podcast and it works a treat, see http://stuffaboutcode.blogspot.co.uk/20 ...
using.html (http://stuffaboutcode.blogspot.co.uk/2012/06/raspberry-pi-access-from-internet-using.html) for
how to get no-ip running and installing the client.
LHIS
If using a Dynamic DNS service, check out your router, many have an option to subscribe to a DynDNS service, so the
updating is handled by your router, not your Pi (or another client on your LAN). One less thing to worry about.
My router does support a couple of dns services, but both charged and being notoriously tight, I installed no-ip simply
because its free!
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"
czayen
Posts: 2
Joined: Thu Jun 21, 2012 9:53 am
I have tried reinstalling it completely and also tried my SD card with my friend's Pi - with the exactly same results.
I'm also running phpmyadmin and webmin on it and there is no problem when using those. It seems like there is a
problem with WordPress only.
chrisfo
11 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
Posts: 1
Joined: Fri Jun 22, 2012 9:30 am
I've had exactly the same experience this week. Wordpress is perhaps overkill for my requirements so I am currently
looking for more lightweight options for the entire 'stack'. When it works it was all pretty slick but the lockups were too
frequent for the overall solution to be usable.
eeyore.t.mule
Posts: 10
Joined: Mon Jun 25, 2012 4:40 pm
Location: Stockport or Barrow
SN wrote:
All of that I have sat behind http://www.bryxx.com (http://www.bryxx.com) a simple one page demo site (at the
moment)
FOOTNOTE - and if you want to see where people are coming from and how often to your site, sign up for Google
Analytics - fantastic solution
Right now 23:21 on 7th June there's someone from Ireland and Norway looking at my site
ah a local user
(well sort of local when I'm back at my house in reddish... I'm up in barrow as I type... )
When i'm back at weekend my first project will be a micro web server. Prob running wordpress, might turn it in to a micro
blog...
Donkeys like Pi
12 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
LetHopeItsSnowing
Posts: 357
Joined: Sat May 26, 2012 6:40 am
Location: UK
A few people have experienced problems with the Pi crashing out under heavy load and again a few people have had good
results by re-compiling the kernal. Search on google for raspberry pi recompile kernal and you will find a few tutorials (its
no where near as scary as it sounds!)
LHIS
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"
Squiffy
Posts: 14
Joined: Sat Jun 30, 2012 9:11 pm
Zekta
Posts: 2
Joined: Mon Jul 02, 2012 9:14 am
PI will run better in the light weight solutions, but the procedure are much more complex.
And it depends much on what to be setup.
E.g. if you expect a fully running CMS, you'll need a DB, which will probably consume lots of memory of the RAM PI
offered.
13 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
If you can keep thing simple, you can put on a lighttpd with static html files. (or Octopress for generating them for
advanced user)
If you want some fancy thing, you'll need a CMS (Probably php based) such as Drupal / Joomla / Wordpress which are the
popular choice, but getting mysql/sqlite run would be tricky.
In the case of database solution, I would strongly suggest you to do that on a external USB HDD (with external
powered USB Hubs).
The reasoning is that the flash media will decay quickly if you have lots of writing. Running a DB on the same flash with
your OS is the last thing you want.
dktucson
Posts: 36
Joined: Tue Jun 12, 2012 2:57 am
BakaOsaka
Posts: 40
Joined: Tue Jun 12, 2012 11:30 am
I'm gonna pitch in and say that I have one running on my Pi at http://bakaosaka.no-ip.org/ (http://bakaosaka.no-ip.org/)
(Usually only during daytime though) and it has PHP added. Because of this, I added a neat little server info page!
14 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
Sort by
Post time
Ascending
Go
Locked
• Print view
37 posts
• 1
•2
•
Jump to
• Community
• General discussion
• Announcements
• Other languages
• Deutsch
• Español
• Français
• Italiano
• Nederlands
• 日本語
• Polski
• Português
• Русский
• Türkçe
• User groups and events
• The MagPi
• Using the Raspberry Pi
• Beginners
• Troubleshooting
• Advanced users
• Assistive technology and accessibility
• Education
• Picademy
• Teaching and learning resources
• Staffroom, classroom and projects
• Astro Pi
• Mathematica
15 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
16 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
• NetBSD
• openSUSE
• Plan 9
• Puppy
• Arch
• Pidora / Fedora
• RISCOS
• Ubuntu
• Ye Olde Pi Shoppe
• For sale
• Wanted
• Off topic
• Off topic discussion
• Board index
• All times are UTC
• Delete cookies
Contact us
TikTok
Trademark
YouTube
About us
Instagram
Our Approved Resellers
LinkedIn
Jobs
Facebook Accessibility
Acceptable use
Cookies
Licensing
Privacy
Security
17 of 18 8/4/2024, 6:08 PM
hosting a website on a raspberry pi ? - Raspberry Pi Forums https://forums.raspberrypi.com/viewtopic.php?t=7762
Raspberry Pi Imager
For industry Raspberry Pi OS
Raspberry Pi for industry
Success stories
Community
Hardware Forums
Cases
Raspberry Pi Press
Peripherals
About Raspberry Pi Press
The MagPi
HackSpace
18 of 18 8/4/2024, 6:08 PM