centos apache 安装
2014-01-07 13:40
267 查看
1、 apr-1.4.6.tar.gz
tar xzf apr-1.4.6.tar.gz
./configure –prefix=/usr/local/apr
make && make install
2、 apr-util-1.5.1.tar.gz
tar xzf apr-util-1.5.1.tar.gz
.configure –with-apr=/usr/local/apr
make && make install
3、 prce
tar xzf pcre-8.32.tar.gz
./configure –prefix=/usr/local/pcre
make && make install
(如果上面安装过程出现/bin/rm: cannot remove `libtoolT’: No such file or directory这个问题,解决办法 vi configure 找到$RM “$cfgfile”这行删掉)
4、 apache
tar xzf httpd-2.4.3.tar.gz
./configure -prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-pcre=/usr/local/pcre/
make && make install
检查一下apache是否正确安装
/usr/local/apache/bin/apachectl -t
(出现AH00557: httpd: apr_sockaddr_info_get() failed for Chunk3这个问题,解决办法, vi /usr/local/apache/conf/httpd.conf 找到#ServerName www.example.com:80 这行,把注释拿掉,然后改成ServerName localhost:80)
启动apache
service httpd start
(出现httpd: unrecognized service这个问题,解决办法
#cd /usr/local/apache/bin/
#cp apachectl /etc/rc.d/init.d/httpd
#vi /etc/rc.d/init.d/httpd
在#!/bin/sh这行下增加
# chkconfig: 2345 50 90
# description:Activates/Deactivates Apache Web Server)
tar xzf apr-1.4.6.tar.gz
./configure –prefix=/usr/local/apr
make && make install
2、 apr-util-1.5.1.tar.gz
tar xzf apr-util-1.5.1.tar.gz
.configure –with-apr=/usr/local/apr
make && make install
3、 prce
tar xzf pcre-8.32.tar.gz
./configure –prefix=/usr/local/pcre
make && make install
(如果上面安装过程出现/bin/rm: cannot remove `libtoolT’: No such file or directory这个问题,解决办法 vi configure 找到$RM “$cfgfile”这行删掉)
4、 apache
tar xzf httpd-2.4.3.tar.gz
./configure -prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-pcre=/usr/local/pcre/
make && make install
检查一下apache是否正确安装
/usr/local/apache/bin/apachectl -t
(出现AH00557: httpd: apr_sockaddr_info_get() failed for Chunk3这个问题,解决办法, vi /usr/local/apache/conf/httpd.conf 找到#ServerName www.example.com:80 这行,把注释拿掉,然后改成ServerName localhost:80)
启动apache
service httpd start
(出现httpd: unrecognized service这个问题,解决办法
#cd /usr/local/apache/bin/
#cp apachectl /etc/rc.d/init.d/httpd
#vi /etc/rc.d/init.d/httpd
在#!/bin/sh这行下增加
# chkconfig: 2345 50 90
# description:Activates/Deactivates Apache Web Server)
相关文章推荐
- CentOS 7.0 安装配置LAMP服务器方法(Apache+PHP+MariaDB)
- CentOS6.5 安装Apache
- CentOS7.1安装配置Apache+PHP+MySQL+PHPMyAdmin+Zend debugger
- 【apache http server安装】CentOS上编译安装Aapche Http Server详细过程
- 【CentOS 7】安装及配置LAMP(CentOS+Apache +MariaDB+PHP or Perl)
- CentOS5.5下不安装Apache安装SVN By 雾里寻踪
- 解决:centos 虚拟机上安装apache后,不能访问
- 如何在CentOS 7服务器上利用Apache安装并保护phpMyAdmin
- CentOS 6.0 Apache的cronolog的安装与自定义日志
- centos7.0 yum 安装php服务器(apache2.4 php 5.4/5.5/5.6/7.0)
- CentOS安装Apache的FastCGI模块(mod_fastcgi)
- centos 安装Apache
- CentOS 安装Apache
- 腾讯云(centos)上安装apache
- [Apache] Centos5.5下安装LAMP完整版
- CentOS6.4下MySQL+Apache+php安装详解
- centos安装配置apache+php+mysql环境
- CentOS 6.4系统通过yum安装 LAMP(Apache+MySQL+PHP)安装步骤及其卸载步骤
- CentOS 5.X用第三方源安装PHP MySQL Apache等
- CentOS 上安装MYSQL+Apache+PHP