`
ibadboy
  • 浏览: 82099 次
  • 性别: Icon_minigender_1
  • 来自: 江苏
社区版块
存档分类
最新评论

centos5.6 apache+svn+ssl 源码安装和配置

阅读更多
1.下载资源
httpd-2.2.20.tar.gz、subversion-deps-1.6.17.tar.gz、
susubversion-1.6.17.tar.gz、zlib-1.2.3.tar.gz

2.源码安装apache

 tar zxvf  httpd-2.2.20.tar.gz
cd httpd-2.2.20
./configure --prefix=/usr/local/apache --enable-dav --enable-modules=so  -- enable-dav-fs   --enable-maintainer-mode --enable-rewrite --with-apr=/usr/local/apr-httpd --with-apr-util=/usr/local/apr-util-httpd

    make && make install


3. 源码安装subversion

  
 tar zxvf  subversion-deps-1.6.17.tar.gz
    tar zxvf  susubversion-1.6.17.tar.gz
    cd susubversion-1.6.17
    ./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr-httpd --with-apr-util=/usr/local/apr-util-httpd --with-ssl --with-zlib=/usr/local/zlib --enable-maintianer-mode
     
     make && make install


  4、设置apache为系统自启动服务

  创建 apache 启动脚本

ln -s /usr/local/apache/bin/apachectl /etc/init.d/apache

修改 /etc/init.d/apache
vi /etc/init.d/apache


在 #!/bin/sh 下添加以下内容

#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server.
# processname: apache



添加 apache 为系统服务(开机启动)
chkconfig --add apache
chkconfig apache on
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics