If the httpd on your centos running server gets stuck and httpd status shows you error like..
Quote:
[root@server]# /etc/init.d/httpd status
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile Apache Status
|
The apache error logs at /usr/local/apache/logs/error_log shows
Quote:
|
/usr/local/apache/bin/httpd: symbol lookup error: /lib/libssl.so.6: undefined symbol: OPENSSL_init
|
It seems that the opnssl on your server is gone corrupt..
In this case what you can do is check the version of the OS running on your server with the following command
[root@server]# cat /etc/redhat-release
now go to "/usr/local/src/" directory on your server.
[root@server]# cd /usr/local/src/
Now download the latest openssl rpm
[root@server]# wget
http://mirror.centos.org/centos-5/5....5_5.7.i386.rpm
Note :: in my case the OS was centos-5.6 hence the above URL worked; if you have any other version of centos then you may access the URL
Index of /
and check for the rpm packge for your respective oS version.
Now remove the previously installed opnessl
[root@server]# rpm -e --nodeps openssl-0.9.8e-12.el5_5.7
To install the latest downloaded openssl rpm use the following command
[root@server]# rpm -ivh openssl-0.9.8e-12.el5_5.7.i386.rpm
Now try to restart the httpd it should work fine..
[root@server]# /etc/init.d/httpd startssl