免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4033 | 回复: 3
打印 上一主题 下一主题

怎么无法安装apache2.2 ? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-11 10:52 |只看该作者 |倒序浏览
linux系统为redhat13.8,自带apache2.0.47版本,近日为了把apache升级至2.2版本,按照CU上的一篇文章进行安装失败,不知原因何在?
     所用安装软件为
        apr-1.2.9.tar.gz  
        apr-util-1.2.8.tar.gz
        httpd-2.2.4.tar.gz
     安装步骤:
      1 . 强制卸载系统自带的apr0.9.4,apr-util-0.9.4,apache2.0.47
         rpm -e --nodeps apr
         rpm -e --nodeps apr-util
         rpm -e --nodeps httpd
     
      2.  首先安装apr-1.2.9
     tar xvfz apr-1.2.9.tar.gz
     cd apr-1.2.9
     ./configure --prefix=/usr/local/apr-httpd
      make
      make install
     再安装apr-util-1.2.8
     tar xvfz apr-util-1.2.8.tar.gz
     cd apr-util-1.2.8
     ./configure --prefix=/usr/local/apr-util-httpd --with-usr/local/apr-httpd
     make
    make install
     在这步完成后进行如下操作
      rpm -qi apr-httpd   提示 package apr-httpd is not install
      rpm -qi apr-util-httpd 提示 package apr-util-httpd is not install
     搞不清楚什么原因,没理会,继续安装

  3. 安装apache2.2.4
       tar xvfz httpd-2.2.4.tar.gz
        cd  httpd-2.2.2
       ./configure --prefix=/usr/local/apache --enable-mods-shared=all --enable-module=most
        --with-apr=/usr/local/apr-httpd   --with-apr-util=/usr/local/apr-util-httpd  --enable-so
      make
      make install
      进行rpm -qi httpd   提示package apr-httpd is not install
        cd /usr/local/apache/bin
        /httpd -k start
       提示:httpd:could not open configureration file local/httpd/conf/httpd.conf
            no such fiel or directory
      这里我莫名其妙,我是把apahce安装在/usr/local/apache中,为何运行httpd时却从/local/httpd中寻找httpd.conf文件.
       有哪位大虾碰到过这种问题,请帮忙解答,在下先谢谢了.

论坛徽章:
0
2 [报告]
发表于 2007-07-11 10:56 |只看该作者
rpm -qi apr-httpd   提示 package apr-httpd is not install
      rpm -qi apr-util-httpd 提示 package apr-util-httpd is not install
     搞不清楚什么原因,没理会,继续安装

这个……你不是使用rpm来安装的软件,rpm自然不知道你是否安装了。

file 一下/usr/local/apache/bin/httpd,这个可能是个脚本,看看里面关于.conf的设置。

论坛徽章:
0
3 [报告]
发表于 2007-07-11 23:14 |只看该作者
谢谢版主的解答,我是真的不知道只有rpm安装的软件才能用rpm -qi 来查看

现在 file /usr/local/apache/bin/httpd 后是如下提示:

/usr/local/apache/bin/httpd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped

  搞不懂啥意思,网上也没找到相关资料

论坛徽章:
0
4 [报告]
发表于 2007-07-12 08:53 |只看该作者
原帖由 wclluck 于 2007-7-11 10:52 发表
linux系统为redhat13.8,自带apache2.0.47版本,近日为了把apache升级至2.2版本,按照CU上的一篇文章进行安装失败,不知原因何在?
     所用安装软件为
        apr-1.2.9.tar.gz  
        apr-util-1.2.8.tar. ...

其中
在这步完成后进行如下操作
      rpm -qi apr-httpd   提示 package apr-httpd is not install
      rpm -qi apr-util-httpd 提示 package apr-util-httpd is not install
     搞不清楚什么原因,没理会,继续安装
因为不是rpm方式安装的,当然查询不到!

参考下
/usr/local/apache/bin/apachectl -help
Usage: /usr/local/apache/bin/httpd [-D name] [-d directory] [-f file]
                                   [-C "directive"] [-c "directive"]
                                   [-k start|restart|graceful|graceful-stop|stop]
                                   [-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP