User avatar
sorinm
Posts: 138
Joined: Sat Mar 03, 2012 10:41 am
Location: Romania

Pi as a webserver

Wed May 16, 2012 7:15 pm


User avatar
jbeale
Posts: 3469
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Pi as a webserver

Wed May 16, 2012 7:25 pm

very nice! Hopefully will remain so. :-)

User avatar
simonlc
Posts: 31
Joined: Wed May 16, 2012 4:11 am
Location: Calgary, AB
Contact: Website

Re: Pi as a webserver

Wed May 16, 2012 8:01 pm

What web server software are you running?

User avatar
sorinm
Posts: 138
Joined: Sat Mar 03, 2012 10:41 am
Location: Romania

Re: Pi as a webserver

Wed May 16, 2012 8:07 pm

apache2 with php5

User avatar
praest76
Posts: 29
Joined: Fri Sep 02, 2011 11:33 am
Location: Newark on Trent, Nottinghamshire
Contact: Website

Re: Pi as a webserver

Wed May 16, 2012 8:26 pm

'tis gone now. Did you just take it offline or did it get trampled into the ground by visitors to this thread?
PRAEst76 [about.me/praest76]
  • Pi¹ - xibalba: OpenELEC, media centre
    Pi² - erebus: Debian Sid, general shell
Raspberry Pi Last.fm group - last.fm/group/Raspberry+Pi

Jancis
Posts: 25
Joined: Thu Jan 26, 2012 3:54 pm

Re: Pi as a webserver

Wed May 16, 2012 9:18 pm

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/

beantownTim
Posts: 4
Joined: Mon Apr 30, 2012 9:01 pm

Re: Pi as a webserver

Thu May 17, 2012 1:34 am

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

User avatar
sorinm
Posts: 138
Joined: Sat Mar 03, 2012 10:41 am
Location: Romania

Re: Pi as a webserver

Thu May 17, 2012 6:14 am

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.

adlambert

Re: Pi as a webserver

Thu May 17, 2012 7:21 am

Mine is permanently in place now, with port 80 forwarding:

http://www.andrewlambert.com/phpinfo.php

n31l
Posts: 21
Joined: Fri Apr 06, 2012 8:27 pm

Re: Pi as a webserver

Thu May 17, 2012 11:34 am

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.

mathewjenkinson
Posts: 60
Joined: Mon Mar 26, 2012 8:13 am

Re: Pi as a webserver

Thu May 17, 2012 2:20 pm

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

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Pi as a webserver

Thu May 17, 2012 5:16 pm

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

mathewjenkinson
Posts: 60
Joined: Mon Mar 26, 2012 8:13 am

Re: Pi as a webserver

Fri May 18, 2012 7:39 am

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

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Pi as a webserver

Fri May 18, 2012 10:32 am

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... :P ;)

adlambert

Re: Pi as a webserver

Fri May 18, 2012 12:42 pm

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... :P ;)
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.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Pi as a webserver

Fri May 18, 2012 12:49 pm

Heh, does "single transistor" count as the most minimal version of an "expansion board"? :lol:

Return to “General discussion”