An error about Apache server loading so

Source: Internet
Author: User

The morning suddenly found that my virtual machine on the Web application can not access the background check httpd service, unable to start, a line prompt:

①starting Httpd:httpd:Syntax error on line 163 of/etc/httpd/conf/httpd.conf:

②cannot load/etc/httpd/modules/mod_ldap.so into server:

③/etc/httpd/modules/mod_ldap.so:undefined Symbol:apr_ldap_ssl_init

I have to say that the Apache error-throwing mechanism is really good, the reason is clear:

① started the Httpd,httpd.conf 163 line error:

② inability to load mod_ldap.so to Apache server:

③ Unknown Symbol: Apr_ldap_ssl_init

This error is due to the fact that the header file is missing or the header file and the execution program do not match.

Before running well, how suddenly made a mistake?

Apr_ remembered that the latest version of Apache Apr was installed last week and should be a version conflict.

Execute httpd-v and see the following information:

========================================

[Email protected] src]# httpd-v
Server version:apache/2.2.15 (Unix)
Server built:oct 16 2014 14:45:47
Server ' s Module Magic number:20051115:25
Server loaded:apr 1.5.1, Apr-util 1.5.4
Compiled using:apr 1.3.9, Apr-util 1.3.9
Architecture:32-bit
Server Mpm:prefork
Threaded:no
Forked:yes (variable process count)
Server compiled with ....
-D apache_mpm_dir= "Server/mpm/prefork"

=======================================

Confirmed, the compilation is using Apr 1.3.9, the runtime loaded Apr 1.5.1 (This is the latest version I installed last week), the version conflict.

Solution Ideas:

① recompile the Apache server and use the high version of the APR library.

② reduces the APR version used by my project, and remains consistent with Apache.

Since the default Apache server is the lower version, I chose the second way of thinking.

The new problem arises: The apr_dbd_mysql.so library was not found.

This looks at the compiled Apr packet path, it is easier to solve, copy the apr_dbd_mysql.so file to

/USR/LIB/APR-UTIL-1 (This is the default loaded library path for the lower version of APR).

An error about Apache server loading so

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.