SliTaz SliTaz Forum

You are not logged in.

#1 2012-12-20 10:23:52

shann
Administrator
Registered: 2011-04-01
Posts: 1,294

SliTaz tiny fast web server

I planning to create a little SliTaz version as web server.

This distribution will containt:

- SliTaz core (very minimal)

- Busybox httpd (latest 1.20.2)

- PHP support

- PHP modules support (php-mysql, php-sqlite, ...)

Offline

#2 2012-12-20 11:48:33

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: SliTaz tiny fast web server

extremly good idea...

what do you think about libmicrohttpd

http://www.gnu.org/software/libmicrohttpd/

it is on the SliTAz-Ola-LiveCD - Download here

http://code.google.com/p/open-lighting/downloads/detail?name=slitaz-ola-0.8.14.iso&can=2&q=

very light and works perfect - if you want to try it - you reach the server under http://ip:9090

and it would be cool, to get it also for the Dockstar and the GoFlex Net (same CPU)

dockstar - http://archlinuxarm.org/platforms/armv5/seagate-dockstar

GoFlex - http://archlinuxarm.org/platforms/armv5/seagate-goflex-net

I was talking with pankso about it, but his plans to do this was postboned, as he has no time

Offline

#3 2012-12-20 13:49:40

shann
Administrator
Registered: 2011-04-01
Posts: 1,294

Re: SliTaz tiny fast web server

hi,

its me seem libmicrohttpd doesn't support php no?

Offline

#4 2012-12-20 16:33:39

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: SliTaz tiny fast web server

yep - you are right - soory, I did not know that....

then I suggest lighttpd - nobody uses Busybox httpd

Offline

#5 2012-12-20 16:38:25

shann
Administrator
Registered: 2011-04-01
Posts: 1,294

Re: SliTaz tiny fast web server

Yes of course,

but i use already lighttpd

but SliTaz use Busybox for core system.

My goal of projet is a demonstration of tiny web server based on SliTaz core, and then purpose a version dedicated for Server (infact purpose lighttpd version or busybox httpd version wink ).

Offline

#6 2012-12-20 16:57:21

kultex
Administrator
Registered: 2011-03-28
Posts: 1,175

Re: SliTaz tiny fast web server

I dont know, if you know or if you did it:

here is a lighttpd server with evrything  http://pizza.slitaz.me/?id=20121111-10004 

slitaz-demo_httpd busybox    http://pizza.slitaz.me/?id=20121130-7579

Offline

#7 2012-12-20 16:57:23

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: SliTaz tiny fast web server

You can use the base (lighter than core) flavor and add the php packages.

busybox httpd should support php see http://git.busybox.net/busybox/tree/networking/httpd.c#n60

Try http://pizza.slitaz.me/

Offline

#8 2012-12-20 17:03:44

shann
Administrator
Registered: 2011-04-01
Posts: 1,294

Re: SliTaz tiny fast web server

kultex,

I don't know flavor was build for this.

i already test busybox (latest 1.20.2) with php package.

and sorry i would like said core (minimal) (confuse between core word and core SliTaz version).

Offline

#9 2012-12-22 21:15:53

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: SliTaz tiny fast web server

What would be required to build a webpage which can read data from a SQLite database?

I'm currently looking into this to make my ebook collection more accessible.

Obviously I'll need PHP but the module to make the link with SQLite is missing and anyway it seems the current PHP code doesn't even support this. Must be =>5.3.0

Check: http://php.net/manual/en/sqlite3.open.php

Any chance with busybox php?

/emgi

Offline

#10 2012-12-22 21:33:48

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: SliTaz tiny fast web server

Why not use perl cgi since your learning it anyway? wink

Personally, I'm a flatfile fan so all my personal sites uses software like flatpress to get the job done.

Btw what kind of ebooks do you have? I tend to convert prepared txt files to jar files I can read on my mobile phone using mjbookmaker. Been planning to do an ebook site for them too.

Offline

#11 2012-12-22 22:44:34

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: SliTaz tiny fast web server

Yeah, I've thought about using Perl for that too but I considered PHP more suitable. You may be right though. The SQLite database is already up and running. ;-)

Both my wife and I are fanatical readers and this project is largely on her request. We have a fairly large collection of crime, thriller, SF, military history and other subjects. Does that match any of your interests?

We use e-Readers, we both have a Kindle and she has an epub device as well. Not using it much though; we both consider the Kindle superior and converting to mobi is easily achieved with Calibre. Reading on a smartphone is not my thing, the screen is simply too small.

/emgi

Offline

#12 2012-12-22 23:11:41

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: SliTaz tiny fast web server

I'm an avid reader in Fantasy and Science Fiction. I can I read up to 200 books a year, but this year I've been pulling back a bit. I've read more on my smart phone ever since I discovered Wattsad, but it got too strict and filled with bad Twilight fanfics. Then I discovered software like TequilaCat and Mjbookmaker which allowed me to build my own java ebooks. Been doing it ever since. Currently working my way through Garth Nix's Sabriel as my first official utf-8 encoded build. Will see how it goes.

Offline

#13 2012-12-23 00:17:49

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: SliTaz tiny fast web server

Installing php installs/configures lighttpd to use sqlite.

Default configuration has busybox httpd start on boot.

Stop httpd to prevent conflict with lighttpd:

[c]# /etc/init.d/httpd stop[/c]

Install php:

[c]# tazpkg -gi php[/c]

Verify your install:

Applications/System Tools/LightTPD server status

Applications/Development/PHP info

Stop busybox httpd from auto-starting:

[c]# leafpad /etc/rcS.conf[/c]

Remove httpd from LOAD_DAEMONS=

Auto-start lighttpd on boot:

Add lighttpd to LOAD_DAEMONS=

Reference:

Applications/Internet/Local Web Server

http://doc.slitaz.org/en:handbook:webserver

Offline

#14 2012-12-23 02:35:22

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: SliTaz tiny fast web server

<offtopic>

Trixar, I proud that you are using Russian soft for reading books on your mobile.

I want to recommend you my favorite bookreader app Foliant (sorry, web site haven't English pages, translate it from Russian with Google Transate). It's j2me powered nice book reader/library with keyboard/touchscreen support. I use it for reading FB2 books, just from zip archives. There are many web sites with fb2 fiction, but few apps that can read fb2 natively (without recoding).

Adjustable color schemes and fonts, images, Russian and English interface, reading progress, touch screen to go to next/prev page or autoscroll...

Great app, but seems a bit outdated (2010).

</offtopic>

Offline

#15 2012-12-23 16:21:56

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: SliTaz tiny fast web server

@Aleksej: Russian software is good!

How nice to see you are proud of things produced by people from your country.

That's something we (NL) stopped doing a long time ago and that is something not to be proud of.

As far as I'm concerned we should re-introduce this virtue and stop taking the average as the norm for anything we do.

/emgi

Offline

#16 2013-02-04 08:14:33

cpcnw
Member
Registered: 2013-01-28
Posts: 41

Re: SliTaz tiny fast web server

Hi - just thought I would chip in after completing my micro web server on Slitaz!

Installed Base, Lighty, PHP - that's it. Almost fell over it was that easy!!!

See here http://www.cpcnw.co.uk/server.htm

Offline

#17 2013-02-23 09:31:02

emgi
Member
Registered: 2012-12-17
Posts: 127

Re: SliTaz tiny fast web server

Perhaps it is time for a small progress report.

My project is entering the operational phase now.

It runs on Slitaz 4.0, ligHTTP and I am using Perl CGI for scripting.

The database is running on SQLite.

Not everything is finished yet but it is already possible to search files and then to download or email them. I have tested this with different browsers and different platforms. (IE9, Chrome, FireFox, Midori, Android) It seems to work on most of them.

Users can change their preferences and a basic help function is also in place. Language support is available in dutch and english but yet not for the whole site.

There are still many functions I want to add or improve but the essence is there.

Future additions: Upload option, messaging functionality, rating options, ...

@Trixar_Za: Feel free to contact me for an account if you want.

/emgi

Offline

#18 2013-04-15 14:36:57

deadwait
Member
Registered: 2013-04-04
Posts: 14

Re: SliTaz tiny fast web server

hi,

quite late i know, just wanted to say, i've been using the mongoose web server for quite some time now for bash cgi, but it also supports php, u might be interested to even try that out

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]