Weblogic 12c & Apache 2.4 troubleshooting
Error - libonssys.so: cannot open shared object file:
httpd: Syntax error on line 355 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /data/apps/apache2/conf.d/vhost.conf: Cannot load /etc/httpd/modules/mod_wl_24.so into server: libonssys.so: cannot open shared object file: No such file or directory
Solution:
1) Copy all supported Download Oracle WebLogic Web Server Plug-Ins 12c from Oracle website : http://www.oracle.com/technetwork/middleware/webtier/downloads/index-jsp-156711.html
Extract the downloaded archive and find (correct file according to your architecture) mod_wl_24.so (This is for Apache2.4.x) & libonssys.so & libonsssl.so & libdms2.so copy into /etc/httpd/modules/ folder.
2) Set the LD_LIBRARY_PATH inside the /etc/sysconfig/httpd file.
echo $LD_LIBRARY_PATH first and copy paste the same in httpd file along with /etc/httpd/modules location.
Example in my case:
File: /etc/sysconfig/httpd
Content of the file: (highlighted one is being added newly)
[atg@localhost ~]$ cat /etc/sysconfig/httpd
#
# This file can be used to set additional environment variables for
# the httpd process, or pass additional options to the httpd
# executable.
#
# Note: With previous versions of httpd, the MPM could be changed by
# editing an "HTTPD" variable here. With the current version, that
# variable is now ignored. The MPM is a loadable module, and the
# choice of MPM can be changed by editing the configuration file
# /etc/httpd/conf.modules.d/00-mpm.conf.
#
#
# To pass additional options (for instance, -D definitions) to the
# httpd binary at startup, set OPTIONS here.
#
#OPTIONS=
#
# This setting ensures the httpd process is started in the "C" locale
# by default. (Some modules will not behave correctly if
# case-sensitive string comparisons are performed in a different
# locale.)
#
LANG=C
LD_LIBRARY_PATH=/lib:/usr/lib:/etc/httpd/modules
3) Post this update restart the apache process as root or sudo user
service httpd restart
Thanks alot! It resolved my issue :)
ReplyDeleteawesome... perfect solution... thnk u so much
ReplyDelete