WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Apache / php alternative  (Read 4942 times)

Offline Franxoois

  • Newbie
  • *
  • Posts: 18
Apache / php alternative
« on: October 19, 2013, 04: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 ?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Apache / php alternative
« Reply #1 on: October 20, 2013, 01: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.
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: Apache / php alternative
« Reply #2 on: October 20, 2013, 11:35:13 AM »
I have Apache 2.4.6 running, need few days to test and pack properly into a .tcz
Béla
Ham Radio callsign: HA5DI

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

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Apache / php alternative
« Reply #3 on: October 20, 2013, 12: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.

32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Apache / php alternative
« Reply #4 on: October 20, 2013, 12: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
Béla
Ham Radio callsign: HA5DI

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

Offline Franxoois

  • Newbie
  • *
  • Posts: 18
Re: Apache / php alternative
« Reply #5 on: October 21, 2013, 02: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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: Apache / php alternative
« Reply #6 on: October 21, 2013, 08: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.
The only barriers that can stop you are the ones you create yourself.

Offline xyz-worx

  • Jr. Member
  • **
  • Posts: 69
Re: Apache / php alternative
« Reply #7 on: October 21, 2013, 08: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

Offline spence91

  • Jr. Member
  • **
  • Posts: 80
Re: Apache / php alternative
« Reply #8 on: November 01, 2013, 08: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.