I've been working with WebSphere Application Server in a Red Hat Virtual Machine, and the other day, after restarting the virtual machine, I was not able to launch IBM HTTP Server from the WebSphere Integrated Console.
I tried to start IBM HTTP Server from the command line using the following command:
[root@xxx ~]# /opt/IBM/HTTPServer/bin/httpd -f /opt/IBM/HTTPServer/conf/httpd.conf
And I've got the following error:
./opt/IBM/HTTPServer/bin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
After checked that the file libaprutil-1.so.0 existed in the /opt/IBM/HTTPServer/lib, I understood that the problem should be that the HTTP Server does not know where to look for the libraries, or, in other words, the LD_LIBRARY_PATH was empty or does not included that directory.
And yeah, actually the variable LD_LIBRARY_PATH was empty, so, I used the command:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/IBM/HTTPServer/lib
and after that the HTTP Server already started as expected!
Now to include this on Operating System boot, just add the command above in /etc/rc.local file.
Regards.
No comments:
Post a Comment