Apache服务启动报错
[[email protected] ]# service httpd start
httpd: Syntax error on line 162 of /etc/httpd.conf/httpd.conf: Cannot load modules/mod_dir.so into server: /usr/local/apache2/modules/mod_dir.so: undefined symbol: apr_array_clear
解决办法:将./configure 选项的--with-apr 替换成--with-included-apr 重新编译
如果报错:
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
解决办法:把apr和apr-util copy到http目录的srclib下 重新编译
cp -rp /usr/local/src/apr-1.4.6/ /usr/local/src/httpd-2.4.10/srclib/apr
cp -rp /usr/local/src/apr-util-1.5.1/ /usr/local/src/httpd-2.4.10/srclib/apr-util
之后再重新编译
ok 可以启动了
时间: 2024-10-13 20:53:15