Adding mod_setenv and mod_status lighttpd modules
-
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 …
-
Verifying the build of lighttpd on pfsense server -- lighttpd -v ... shows 1.4.32
-
Downloading 1.4.32 lighttpd tarball from lighttpd website and installing locally on my own ubuntu machine
-
Copying compiled mod_setenv.so and mod_status.so files to the pfsense server /usr/local/lib/lighttpd directory
-
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"
) -
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
-