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, ...)
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, ...)
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
hi,
its me seem libmicrohttpd doesn't support php no?
yep - you are right - soory, I did not know that....
then I suggest lighttpd - nobody uses Busybox httpd
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 ;) ).
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
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/
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).
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
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.
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
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.
Installing php installs/configures lighttpd to use sqlite.
Default configuration has busybox httpd start on boot.
Stop httpd to prevent conflict with lighttpd:
# /etc/init.d/httpd stop
Install php:
# tazpkg -gi php
Verify your install:
Applications/System Tools/LightTPD server status
Applications/Development/PHP info
Stop busybox httpd from auto-starting:
# leafpad /etc/rcS.conf
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
<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>
@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
You must log in to post.