IHS fails to load mod2_cognos.so
Problem(Abstract)
Unable to start IHS (IBM HTTP Server) with Cognos Apache Mod.
[ihs@slqerp03 bin]$ ./start
Syntax error on line 182 of /apps/ihs/prod/conf/ihs2_cognos/conf/httpd.conf:
Cannot load /apps/crn/prod/c8gate/cgi-bin/mod2_cognos.so into server:
libhttpdap2_stub.so: cannot open shared object file: No such file or directory
/etc/init.d/ibmhttpd20 : httpd ihs2_cognos could not be started
Cause
IHS cannot load the Cognos libraries in cgi-bin directory.
Environment
Serveur IHS Linux Red hat 5
IHS 6.1
Diagnosing the problem
The LD_LIBRARY_PATH is not set correctly in the IHS scripts
Resolving the problem
Modify the LD_LBRAIRY_PATH in the script file "envars" to add the Cognos cgi-bin path.
# envvars-std - default environment variables for apachectl
#
# This file is generated from envvars-std.in
#
LD_LIBRARY_PATH="/apps/ihs/6.1/lib:/apps/crn/prod/c8gate/bin:/apps/crn/prod/c8gate/cgi-bin:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH