How To Fix "symbol lookup error: /usr/sbin/httpd2-prefork: undefined symbol: apr_ldap_ssl_init"

Problem:

    When you finish install apache on SuSe 64 system via "zypper in apache", it will create the latest soft link for you. So, when you start apache, it will fail.

SUSE~ # rcapache start

Starting httpd2 (prefork) /usr/sbin/httpd2-prefork: symbol lookup error: /usr/sbin/httpd2-prefork: undefined symbol: apr_ldap_ssl_init

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
                                                                                                                                                     failed

    Here is the way to solve this issue.

 

    First, go to "/usr/lib64/" folder. You will find that the soft link is linking to the latest libapr* lib.

SUSE:/usr/lib64 # l libap*
lrwxrwxrwx 1 root root     17 Jun 18 16:52 libapr-1.so.0 -> libapr-1.so.0.4.6*
-rwxr-xr-x 1 root root 181112 Oct 12  2009 libapr-1.so.0.3.3*
-rwxr-xr-x 1 root root 774242 May 17 16:49 libapr-1.so.0.4.6*
lrwxrwxrwx 1 root root     21 Jun 18 17:07 libaprutil-1.so.0 -> libaprutil-1.so.0.4.1*
-rwxr-xr-x 1 root root 148024 Oct 12  2009 libaprutil-1.so.0.3.4*
-rwxr-xr-x 1 root root 495629 May 17 17:33 libaprutil-1.so.0.4.1*

 

    Second, change them to the old one.

SUSE:/usr/lib64 # ln -sf libapr-1.so.0.3.3 libapr-1.so.0

SUSE:/usr/lib64 # ln -sf libaprutil-1.so.0.3.4 libaprutil-1.so.0

SUSE:/usr/lib64 # l libap*
lrwxrwxrwx 1 root root     17 Jun 18 17:11 libapr-1.so.0 -> libapr-1.so.0.3.3*
-rwxr-xr-x 1 root root 181112 Oct 12  2009 libapr-1.so.0.3.3*
-rwxr-xr-x 1 root root 774242 May 17 16:49 libapr-1.so.0.4.6*
lrwxrwxrwx 1 root root     21 Jun 18 17:11 libaprutil-1.so.0 -> libaprutil-1.so.0.3.4*
-rwxr-xr-x 1 root root 148024 Oct 12  2009 libaprutil-1.so.0.3.4*
-rwxr-xr-x 1 root root 495629 May 17 17:33 libaprutil-1.so.0.4.1*

 

    Finally, start apache again. It works now.

SUSE:~ # rcapache2 start
Starting httpd2 (prefork) httpd2-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1  for ServerName
                                                                                                                                                     done

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值