Hi, you can try this (in a test environment):
set/expand the environment variable LD_LIBRARY_PATH to /home/adam/openssl/lib in your http environment (start script of httpd) or move/copy the two libraries of /home/adam/openssl to a system path, for example /lib or expand the /etc/ld.so.conf file with your /home/adam/openssl/lib Here a good howto about Shared Libraries (see chapter "Library Path:) http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html Jacques Mineur (alias ossmon) Von: William Afendy <carbo...@gmail.com> An: icinga-users@lists.sourceforge.net Datum: 27.09.2012 08:50 Betreff: [icinga-users] Internal Server Error Hi, I'm getting "Internal Server Error" message when trying to execute the cgi through http. For example http://localhost:30000/icinga/cgi-bin/status.cgi Apache Log shows: [Wed Sep 26 23:50:08 2012] [error] [client 127.0.0.1] /home/adam/icinga/sbin/status.cgi: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory [Wed Sep 26 23:50:08 2012] [error] [client 127.0.0.1] Premature end of script headers: status.cgi ldd status.cgi linux-gate.so.1 => (0x009a0000) libssl.so.1.0.0 => /home/adam/openssl/lib/libssl.so.1.0.0 (0x006c1000) libcrypto.so.1.0.0 => /home/adam/openssl/lib/libcrypto.so.1.0.0 (0x00110000) libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00750000) libdl.so.2 => /lib/libdl.so.2 (0x008ae000) /lib/ld-linux.so.2 (0x00731000) No libssl error if I execute the cgi within terminal, /home/adam/icinga/sbin/status.cgi ./status.cgi getcgivars(): Unsupported REQUEST_METHOD -> '' I'm guessing you're trying to execute the CGI from a command line. In order to do that, you need to set the REQUEST_METHOD environment variable to either "GET", "HEAD", or "POST". When using the GET and HEAD methods, arguments can be passed to the CGI by setting the "QUERY_STRING" environment variable. If you're using the POST method, data is read from standard input. Also of note: if you've enabled authentication in the CGIs, you must set the "REMOTE_USER" environment variable to be the name of the user you're "authenticated" as. The libssl error only occurs when the cgi files are accessed through http, I can't seem to figure out what I missed in apache configuration. -wa -- William Afendy ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users