首页 > 系统运维 > Centos 5.8安装apache 2.4.3报错
您的足迹
  • 你没有浏览过任何文章或者你没有开启cookies。

Centos 5.8安装apache 2.4.3报错

1.下载apr ,apr-util,pcre

2.编译安装步骤如下:

cd httpd-2.4.3

cp -rf ../apr-1.4.6 srclib/apr

cp -rf ../apr-util-1.5.1 srclib/apr-util

编辑参数如下:

"./configure" "--prefix=/usr/local/httpd" "--enable-modules=most" "--enable-mods-shared=most" "--enable-so" \
"--with-mpm=prefork" "--with-apr=/usr/local/apr" "--with-apr-util=/usr/local/apr-util/" \
"--with-pcre=/usr/local/pcre/" "--sysconfdir=/usr/local/httpd/conf/"  "--with-included-apr" "--with-included-apr"

要加”–with-included-apr“,否则会报:”httpd: Syntax error on line 140 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_dir.so into server:

/usr/local/apache2/modules/mod_dir.so: undefined symbol: apr_array_clear

3.配置启动略

  1. 还没有评论
评论提交中, 请稍候...

留言

可以使用的标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackbacks & Pingbacks ( 0 )
  1. 还没有 trackbacks
Feed