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