You are not logged in.
Pages: 1
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
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
hi,
its me seem libmicrohttpd doesn't support php no?
Offline
yep - you are right - soory, I did not know that....
then I suggest lighttpd - nobody uses Busybox httpd
Offline
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
).
Offline
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
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
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
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
Why not use perl cgi since your learning it anyway? 
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
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
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
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
<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
@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
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
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
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
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]