Menu

#428 lighttpd base configuration outdated

12.1.0.4
closed
ms49434
None
1
2020-11-30
2020-11-29
kuku
No

as per https://redmine.lighttpd.net/projects/lighttpd/wiki/server_event-handlerDetails libev is deprecated use:
server.event-handler = "freebsd-kqueue" - can't change this in the gui - gives an error.
I don't know if this is compiled in but might be a good choice too?
https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Performance#Event-Handlers
server.network-backend = "freebsd-sendfile"

Discussion

  • ms49434

    ms49434 - 2020-11-29
    • assigned_to: ms49434
     
  • ms49434

    ms49434 - 2020-11-29

    The use of libev is not deprecated, it is no longer recommended.
    The handler for the WebGUI instance of lighttpd and for the websrv instance of lighttpd are as follows:

    Event Handlers:

    + select (generic)
    + poll (Unix)
    - epoll (Linux)
    - /dev/poll (Solaris)
    - eventports (Solaris)
    + kqueue (FreeBSD)
    + libev (generic)
    

    Network handler:

    - linux-sendfile
    + freebsd-sendfile
    - darwin-sendfile
    - solaris-sendfilev
    + writev
    + write
    - mmap support
    

    Please amend this bug report with further details of the issues you are having.

     
  • kuku

    kuku - 2020-11-29

    I want to add this line using the gui in webserver but I get an error
    Error: The changes could not be applied (Error Code 1): server.event-handler = "freebsd-kqueue"

     
    • ms49434

      ms49434 - 2020-11-30

      server.event-handler := "freebsd-kqueue" will do the trick.

      If you want to replace a previously set value, use operator := instead of =

       
  • ms49434

    ms49434 - 2020-11-30
    • status: open --> closed
     
  • kuku

    kuku - 2020-11-30

    I am searching the https://www.xigmanas.com/ site and can't find a manual to learn these commands from. Maybe it is a good idea to show these commands then one gets an error? It woud be definitely better for a newbie than "Error: The changes could not be applied (Error Code 1)." that says not much.

    Well it is on you how much you want to be user friendly?

     
    • ms49434

      ms49434 - 2020-11-30

      This is not specific to XigmaNAS. In the Additional Parameters section of the web server service you find a link to the documentation of lighttpd ("Please check the documentation."). On the lighttpd documentation page, click on "Configuration file syntax":
      ...
      replace : NAME := VALUE (replace/overwrite earlier value) (since 1.4.46)
      ...

      It is not on me because XigmaNAS is a community driven project. If you want to make it better and more user friendly, you are welcome to join the team.

       
  • kuku

    kuku - 2020-11-30

    Sorry, now I found the link in the gui to the docs. Thanks for your help.

     

Log in to post a comment.

MongoDB Logo MongoDB