WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: lighthttp for Pi  (Read 4805 times)

Offline lemming

  • Newbie
  • *
  • Posts: 37
lighthttp for Pi
« on: June 21, 2014, 08:07:48 PM »
I want to set up a Pi with a webserver so that I can control the various I/O of the Pi through a web interface. To do this I would like a light webserver, e.g. lighthttp, to provide this interface. I will need to use cgi to call a C executable to controlthe Pi's I/O. While there is a TCZ of lighthttp for the standard Core, there is none for Picore. There is mongoose however this requires a subscription to be paid each year for CGI functionality and, I assume, the Pi connected to the internet so they can enforce this.  My application is for a remote, solar powered installation so this is not an option.

I would prefer to use lighthttp as it is well documented, well supported through the use by many users. Has anyone got a TCZ for PiCore. However if this is not possible can anyone suggest another light webserver with CGI?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: lighthttp for Pi
« Reply #1 on: June 21, 2014, 10:44:18 PM »

Offline lemming

  • Newbie
  • *
  • Posts: 37
Re: lighthttp for Pi
« Reply #2 on: June 21, 2014, 11:34:01 PM »
Thanks Rich,

Since posting the OP I stumbled across this one. Looks nice and light and supports CGI.

Not as well used and well 'forumed' as lighthttp, which I'd prefer, but I will give it a try.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 402
Re: lighthttp for Pi
« Reply #3 on: June 22, 2014, 04:18:52 AM »
hi lemming,

Also, there are 2 x httpd examples in the "Into the Core" book http://tinycorelinux.net/book.html

regards

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: lighthttp for Pi
« Reply #4 on: June 22, 2014, 04:31:09 AM »
Also you can use apache2.4.tcz
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lemming

  • Newbie
  • *
  • Posts: 37
Re: lighthttp for Pi
« Reply #5 on: June 23, 2014, 09:34:38 PM »
Quote
Also you can use apache2.4.tcz

Thanks bmarkus, but apache is a bit over blown and heavy for a simple single user web interface for my Pi.

I thought that seeing there is a lighthttp TCZ for the other cores, there may be one coming for the Pi (which, being underpowered, would have a greater need  for a lightweight  webserver than its multicore x86 cousins).

Thanks Greg for the link to examples.


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: lighthttp for Pi
« Reply #6 on: June 23, 2014, 10:29:50 PM »
Quote
Also you can use apache2.4.tcz

Thanks bmarkus, but apache is a bit over blown and heavy for a simple single user web interface for my Pi.


Not really. It is a generic misconception. It is only abt. 1.5M, the biggest dependencie is openssl which already must have installed. And it has all the features you need. Worth to try.

Otherwise there is the BusyBox httpd which supports CGI
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline xyz-worx

  • Jr. Member
  • **
  • Posts: 69
Re: lighthttp for Pi
« Reply #7 on: June 24, 2014, 02:52:25 AM »
Hi lemming,

if you are looking for a lightweight web-server you might take a look at
the 'monkey' web-server here:  http://monkey-project.com/.

There is also a separate 'raspberry pi' section.

It supports CGI and Fast-CGI. The only drawback might be, that you have to compile it on your own.

Regards xyz-worx

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: lighthttp for Pi
« Reply #8 on: June 24, 2014, 10:06:36 AM »
lighttpd.tcz added to repo.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: lighthttp for Pi
« Reply #9 on: June 25, 2014, 01:36:48 AM »
nginx.tcz added to repo. You can try it too.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."