Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Adding mod_setenv and mod_status lighttpd modules

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    1 Posts 1 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      clydetheglide
      last edited by

      Hi There,

      I have read from a few sources online that this should be possible, however, I'm not getting the desired outcome.

      If anybody could kindly help me out, please feel free to let me know if I have no idea what I'm doing …

      1. Verifying the build of lighttpd on pfsense server -- lighttpd -v ... shows 1.4.32

      2. Downloading 1.4.32 lighttpd tarball from lighttpd website and installing locally on my own ubuntu machine

      3. Copying compiled mod_setenv.so and mod_status.so files to the pfsense server /usr/local/lib/lighttpd directory

      4. modifying /etc/inc/system.inc to include mod_setenv and mod_status in the server.modules declaration ... example:
        server.modules              =  ( "mod_access", "mod_expire", "mod_compress", "mod_redirect",
        {$captiveportal}, "mod_fastcgi", "mod_setenv", "mod_status"
        )

      5. running 'killall -9 php; killall -9 lighttpd; /etc/rc.restart_webgui

      ....

      The errors that I've piped out from the function mwexec() call tells me the following:

      Restarting webConfigurator...2013-12-19 11:35:15: (plugin.c.169) dlopen() failed for: /usr/local/lib/lighttpd/mod_setenv.so /usr/local/lib/lighttpd/mod_setenv.so: unsupported file layout
      2013-12-19 11:35:15: (server.c.676) loading plugins finally failed
      2013-12-19 11:35:15: (plugin.c.169) dlopen() failed for: /usr/local/lib/lighttpd/mod_setenv.so /usr/local/lib/lighttpd/mod_setenv.so: unsupported file layout
      2013-12-19 11:35:15: (server.c.676) loading plugins finally failed
      done.

      ...

      The same is happening for mod_status as well, if I isolate it in the server declaration line above.

      Anybody have ideas?  Kindly appreciate any input.

      -Clyde

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.