Topic: running a web server on OpenWrt

I created this table:  http://wiki.openwrt.org/doc/howto/http.overview

Is it useful? Is it complete? Which web server //do// you use for non-administrative purposes?

2 (edited by written_direcon 2011-06-18 14:57:28)

Re: running a web server on OpenWrt

You mostly already have a Web Server installed. It's uHTTPd.

Wiki: Web Server Configuration (uHTTPd)

Re: running a web server on OpenWrt

If I followed http://wiki.openwrt.org/doc/howto/luci.essentials#installation then yes, but I didn't. (The maintainer of my build wisely doesn't include webui).

Now give some pros and cons of the other available FOSS software.

Re: running a web server on OpenWrt

I would expect from wise cli user to be able to use google in order to research http server characteristics.

Re: running a web server on OpenWrt

Dear Scruffy,

wow, really interesting table concerning the web server on Open WRT.

Sincerely thanks.

But just two things or better three things in fact.

First of all I know you may be can answer all my requests but please let me tell you what I really want to do with my OpenWRT (on ASUS WL-500gP 1).

I though to use it like a small server. And when I read the Nginx seems to be a : "high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server " I just regret there is no wiki page explaining how to configure it perfectly (following what I want to do).

Then I will explain :
1) I installed my OpenWRT on my ASUS WL-500g Premium I (4 RJ45 and 2 USB). No problem until I have space problems and though to install the needed software on the connected USB HDD. I can getting it works. Even if I can install programs on the USB I don't know how to tell it to start them. I can't find the really well explained documentation.

2) I though to use it for those special things :
    a) install a web server (for my personal CMS use),
    b) install the owhttpd   (for home temperature check),
    c) install a mail server that can receive autoforwarding mails and then tell me each hour if I received e-mail (to prevent always being before my display to check the mailboxes. Or to tell me it when I wake up or come back home.),
    d) and finally (by using the concerned web server) doing motion detection with the webcam connected on the second USB (or on an ethernet port).

Then by reading the fact Nginx seems to be a : "high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server" I presume it is the best web server I need to make my point a), c) and d).

Then I can consider that the needed documentation is needed for Nginx, OWHttpd, Motion (detection) software (installation and cnfiguration), and Speaking software to tell me (only if I receved one) from who I received e-mail.

With sincerely thanks with the work you already done for web server. Now when I will have time I will check the Nginx (LAMP) and other needed programs.

Have a nice day,

Miguipda ;-)

Re: running a web server on OpenWrt

jow wrote:

I would expect from wise cli user to be able to use google in order to research http server characteristics.

Well, the "wise CLI user" already spent some time creating that stupid table. Now he was hoping, that peu a peu, other people would chip in and fill it with "meaningful information".

The question "which web server to use" pops up from time to time and could be diverted to the wiki in the future.

Re: running a web server on OpenWrt

Hi,

concerning my point 1) and 2) a) are made.

I well installed an external HDD and install programs on it (even the swap but I don't know if this swap works).
I well installed the web server nginx (2) a)). But I can't start it.

I created the symbolic link (number 61) in the rc.d to /mnt/sda3/OpenWRT-Pgms/etc/init.d/nginx. And in this nginx I changed the START to 61.
I rebooted and tried again to start it. Here is the error I received :
/mnt/sda3/OpenWRT-Pgms/etc/init.d/nginx start
/mnt/sda3/OpenWRT-Pgms/usr/sbin/nginx: can't load library 'libpcre.so.0'

Then I installed the libpcre program also on the mounted external HDD and it doesn't find it.

And after having checked the list-installed programs I can see this libpcre is well known as installed.

Then, can somebody tell me how to solve this and get nginx working ?

Sincerely thanks and have a nice day.

Miguipda ;-)

Re: running a web server on OpenWrt

migupida:  You should try http://wiki.openwrt.org/doc/howto/extroot which means installing the complete / (root) on the external drive.

Re: running a web server on OpenWrt

@migupida do the '$ free' to find out if your swap works, and do not try to hijack another user post. Open your own new post with 1) 2) 3) ...

With regard to web servers table, it definitely needs to be reworked and filled with information relevant to the OpenWRT distribution. Web servers comparison table is needed, but it has to contain only the relevant information that will cause you to choose one web server over the other. Here are my suggestions:

1. Consolidate the 3 different "SIZE" columns into one.  Having one number for base+dependencies, and skip the extensions since they are very small anyways.
2. Delete the description column all together. Instead have a column called "LIMITATIONS" that would highlight what one server can do that another cannot.
   lighttpd - no support for .htaccess
   lighttpd - no error log per virtual host
   apache - big memory hog
   nginx - no project bug tracking system
   uhttpd - limited to a single PHP process
3. Do not list the extensions each on one line. This makes the table look ridiculously long.

Good luck!