Webserver for Embedded Linux

7,180

I would recommend Nginx. It can use very small amounts of memory (depending on modules loaded) and can cooperate nicely by FastCGI with PHP or other dynamic scripting languages. It is little harder to understand its initial configuration as Lighttpd. Nginx is also good with HTTPS, but also here FPU is even more important because crypto is pure floating point math. HTML5 is just format of the static pages served, so all webservers support it.

Does this CPU have a FPU (support for floating point aritmetics), as this is quite important for databases. MySQL/SQLite would run quite slow without FPU when all floating point operation would have to be emulated.

Share:
7,180
linge
Author by

linge

Updated on September 18, 2022

Comments

  • linge
    linge over 1 year

    I am building an ARM based embedded device running embedded linux having a web based interface and I need a webserver running on my device. At maximum it will get 50 requests at a time. I have on board 1 GB RAM. I will also need HTTPS. The webserver should not consume too much memory (of-course as its an embedded device). It should support dynamic contents (so I guess Boa is out). My website should also be able to support HTML5. Following are some of the options I have looked into but open to suggestions.

    • lighttpd
    • nginx
    • Hiawatha
    • thttpd
    • Boa

    Any feedback / input / pointer is welcome

    • Ignacio Vazquez-Abrams
      Ignacio Vazquez-Abrams almost 12 years
      What else do you need the 1GB or RAM for?
    • linge
      linge almost 12 years
      There will also be some services for some peripheral devices. The system will not have too many request at any single instance of time (50 requests is more than THE WORST case scenario, I will be glad if I get such load). Actually I am creating a concept like Web Applications (i.e Chrome apps), this webserver will host and show such apps. The server will communicate with another server that is accessible over internet. It may (not sure yet) have a sql database (mysql, sqlite etc). The hardware is iMX6 Processor based (Cortex A9 Quad Core), GPU, 1GB RAM.
    • altmas5
      altmas5 almost 12 years
      You should also check micro_httpd, I have a small router running this webserver and it works fine.
  • linge
    linge almost 12 years
    So far as per my research I am nearing down to Nginx, Lighttpd. But memory leaks of Lighttpd seems trouble to me. What do you think about Hiawatha ?
  • Marki555
    Marki555 almost 12 years
    Sorry, I don't have any experience with Hiawatha...
  • linge
    linge almost 12 years
    Thanks a lot. Any comments on the server side scripting language, python, lua or php ?
  • Marki555
    Marki555 almost 12 years
    Depends on the task you want to program and on the languages you can use :)