views:

129

answers:

3

Hi all,

on my search for a fast but comfortable web server I dropped into the homepage of EmbedThis(TM) AppWeb(TM) HTTP server. This one has 2 licencse models, GPLv2 and a commercial one with support.

On the first view it looks good: the footprint is not too big, it is fast and it has a lot of configuration otions. The most important thing would be a fast PHP execution using a built-in PHP library. Unfortunately this PHP library doesn't include every option, especially "gettext" which one I need for I18N.

My target platform is Linux on an embedded device with an ARM based CPU. Does anybody have experiences with the issues mentioned above?

Kind regards, Andi

+1  A: 

I check the source code and PHP is not included in it (only a handler for the web server itself). I suppose you downloaded the binaries and the bundled version of PHP did not include gettext.

You have to compile PHP yourself and when you do that you can include the extensions you want.

Artefacto
+2  A: 

Doesn't lighttpd run on embedded platforms? It supports PHP through FastCGI. If it doesn't then thttpd might be a viable solution (runs PHP through CGI).

Alternatively you could just have a look at the servers mentioned in the Lightweight Web servers article and see if one fits your needs better then those.

wimvds
I have these alternates on my list; I want to test differnet packages and to compare performance, footprint, functionality, etc. I read the article from IBM, a very good start!
Andi
+1  A: 

Their FAQ entry extensively covers replacing the built in library with another flavor of PHP, as well as enabling more features in the built in PHP handler. This isn't obvious in the default (html) docs that come in the docroot (localhost:7777 after installing).

Just check out the mentioned git repo, edit the Makefile (basically, wrapper to Zend's) and include mbstring, or whatever else you need. The default build is extremely bare bones.

This will make a new libphp.so for Appweb to use.

Good to see another fan of Appweb, its a very useful tool.

Tim Post
Should it be so easy? Thank yu very much, I wil try this one!
Andi
Got it! Struggling a few times, but now it's running. And I can strip every unrequired option. Thank you very much!
Andi
@Andi - Yes, its really great once you have it working. You now have 'just enough' PHP to suit your need :) Appweb is a really cool project.
Tim Post