Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Franxoois on October 19, 2013, 07:32:58 PM

Title: Apache / php alternative
Post by: Franxoois on October 19, 2013, 07:32:58 PM
Hello,

I developed on Raspberry applications using apache/php/mysql , java/rxtx, hostapd. I used raspbian. I spend lots of time triming down the size of the system and making the system read only. I still have issues with data corruptions and the enormous size of the system
The needs are not that important. I already have been replaced java by python during the last months. Sqlite would be a lighter alternative.
I tried TC and was really impress. TC seems to be way better solution. I installed pyserial.

I did'nt find apache ou php in the repo. Would it be there soon ? Is there already light alternative for apache ? Maybe also an alternative for php ?
Title: Re: Apache / php alternative
Post by: bmarkus on October 20, 2013, 04:29:14 AM
Hi

I will see whether APACHE and PHP can be added to the repo in the next days. As a lite WEB server I advice mongoose. It is a feature reach prog supporting CGI ehich may be useful. SQLITE is in the repo and MariaDB will come.
Title: Re: Apache / php alternative
Post by: bmarkus on October 20, 2013, 02:35:13 PM
I have Apache 2.4.6 running, need few days to test and pack properly into a .tcz
Title: Re: Apache / php alternative
Post by: Lee on October 20, 2013, 03:07:53 PM
I noticed the advice to try mongoose and thought I'd take a look at it.  In hunting around for the online docs, I found that the licensing of mongoose was changed a few weeks ago.  That won't retroactively affect the mongoose extension currently in the repository, but anyone making an update will want to bear that in mind.

Title: Re: Apache / php alternative
Post by: bmarkus on October 20, 2013, 03:16:13 PM
Thanks for noting the change. However at http://code.google.com/p/mongoose/ is stated:

Quote
Mongoose is licensed under the terms of GNU GPL v.2 license.

Previously it was MIT. I don't think that it has an influence on mongoose.tcz
Title: Re: Apache / php alternative
Post by: Franxoois on October 21, 2013, 05:09:04 AM
Hi

I will see whether APACHE and PHP can be added to the repo in the next days. As a lite WEB server I advice mongoose. It is a feature reach prog supporting CGI ehich may be useful. SQLITE is in the repo and MariaDB will come.

Thanks for your advice. I will take a look at mongoose, maybe with LUA instead of php
Title: Re: Apache / php alternative
Post by: curaga on October 21, 2013, 11:18:15 AM
For any non-trivial script, writing it in C or C++ will have lower size than in a scripting language, when you include the scripting runtime's size.

The C libs are also needed for the system, but PHP/Lua/etc only for your script; so if size is the goal, don't use a scripting lang.
Title: Re: Apache / php alternative
Post by: xyz-worx on October 21, 2013, 11:19:43 AM
Hi Franxoois,

if your looking for a light-weight web-server, you might take a look at

     http://monkey-project.com

regards xyz-worx
Title: Re: Apache / php alternative
Post by: spence91 on November 01, 2013, 11:12:30 AM
I've compiled lighttpd on the pi and that comes in at around 1Mb, I needed php as well, which comes in at a lot more: 8Mb.