Page 1 of 1
Pi as a webserver
Posted: Wed May 16, 2012 7:15 pm
by sorinm
Re: Pi as a webserver
Posted: Wed May 16, 2012 7:25 pm
by jbeale
very nice! Hopefully will remain so.

Re: Pi as a webserver
Posted: Wed May 16, 2012 8:01 pm
by simonlc
What web server software are you running?
Re: Pi as a webserver
Posted: Wed May 16, 2012 8:07 pm
by sorinm
apache2 with php5
Re: Pi as a webserver
Posted: Wed May 16, 2012 8:26 pm
by praest76
'tis gone now. Did you just take it offline or did it get trampled into the ground by visitors to this thread?
Re: Pi as a webserver
Posted: Wed May 16, 2012 9:18 pm
by Jancis
that's just what I did next day I got it
I went with nginx because it's faster with smaller footprint. last night tried to compile php-fpm, but no dice. because I like playing with it, max uptime is only 3 days so far and I plan doing something on weekend again.
http://raspi.iists.it/
Re: Pi as a webserver
Posted: Thu May 17, 2012 1:34 am
by beantownTim
http://www.timroberts.net/phpsysinfo as well.. used lighttpd.. been running strong for about 72 hours now, though i get little to no traffic haha
Re: Pi as a webserver
Posted: Thu May 17, 2012 6:14 am
by sorinm
praest76 wrote:'tis gone now. Did you just take it offline or did it get trampled into the ground by visitors to this thread?
It`s offline until I will find a better place to install the Pi. It`s so fragile.
Re: Pi as a webserver
Posted: Thu May 17, 2012 7:21 am
by adlambert
Mine is permanently in place now, with port 80 forwarding:
http://www.andrewlambert.com/phpinfo.php
Re: Pi as a webserver
Posted: Thu May 17, 2012 11:34 am
by n31l
Hi Andrew, page came up very quickly. I’m following this thread as when the Pi does arrive the main job I want it to do is act as the house link to the outside world. Looks like by the time I’m ready you lot should have sorted out most of the problems. Just need to add a few hardware inputs from alarm etc and may be a few usb cameras.
Re: Pi as a webserver
Posted: Thu May 17, 2012 2:20 pm
by mathewjenkinson
Hi guys,
this looks fab
Do you know if your able to use PHP / python to talk to the GPIO pins?
For example hooking up a thermometer and outputting real time temperatures via the web server?
thanks
Mathew
Re: Pi as a webserver
Posted: Thu May 17, 2012 5:16 pm
by AndrewS
mathewjenkinson wrote:Do you know if your able to use PHP / python to talk to the GPIO pins?
http://pypi.python.org/pypi/RPi.GPIO/
For example hooking up a thermometer and outputting real time temperatures via the web server?
AFAIK most temperature sensors output analogue voltages. The Raspi doesn't have any ADCs, so you'd need to use one of the
http://elinux.org/RPi_Expansion_Boards
Re: Pi as a webserver
Posted: Fri May 18, 2012 7:39 am
by mathewjenkinson
Hi Andrew many thanks for the link.
If the Pi has only got digital pins Im assuming I can hook up relays? Setting the digital pin to 0 or 1 to activate a relay?
thanks
Mathew
Re: Pi as a webserver
Posted: Fri May 18, 2012 10:32 am
by AndrewS
Not directly, no. The RPi's GPIO lines don't supply enough current to drive relays, you'll need to look at one of the expansion boards...

Re: Pi as a webserver
Posted: Fri May 18, 2012 12:42 pm
by adlambert
AndrewS wrote:Not directly, no. The RPi's GPIO lines don't supply enough current to drive relays, you'll need to look at one of the expansion boards...

It wouldn't be a big problem to interface a GPIO pin to the base of a transistor and use that to to trigger a relay in its emittor circuit.
Re: Pi as a webserver
Posted: Fri May 18, 2012 12:49 pm
by AndrewS
Heh, does "single transistor" count as the most minimal version of an "expansion board"?
